python - 我怎样才能找到所有 ydl_opts

标签 python python-3.x youtube-dl

ydl_opts = {
    'verbose': True,                       #like this
    'format': '{}'.format(int(comboget)),  #format,vebrose,ottmpl
    'outtmpl': '%(title)s-%(id)s.%(ext)s', #how can i find
    'noplaylist': mt,                      #all dictionary
    'logger': MyLogger(),                  #options
    'progress_hooks': [durum],             #how can i find
}
ydl = youtube_dl.YoutubeDL(ydl_opts)
ydl.download([url])

我怎样才能在这里找到所有 ydl_opts https://github.com/rg3/youtube-dl

最佳答案

Python 模块的所有选项均列于 YoutubeDL.py 中。

这里是一小段摘录

username:          Username for authentication purposes.
password:          Password for authentication purposes.
videopassword:     Password for accessing a video.
usenetrc:          Use netrc for authentication instead.
verbose:           Print additional info to stdout.
quiet:             Do not print messages to stdout.
no_warnings:       Do not print out anything for warnings.
forceurl:          Force printing final URL.
forcetitle:        Force printing title.
forceid:           Force printing ID.
forcethumbnail:    Force printing thumbnail URL.
forcedescription:  Force printing description.
forcefilename:     Force printing final filename.
forceduration:     Force printing duration.
forcejson:         Force printing info_dict as JSON.
dump_single_json:  Force printing the info_dict of the whole playlist
                   (or video) as a single JSON line.
...

关于python - 我怎样才能找到所有 ydl_opts,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38658046/

相关文章:

python - 使用sightengine api 时,“检查​​”对象没有属性 'image'

python - 用 Python 3 控制鼠标?

c# 使用管道获取输出流

Python 3 : Returning variable through multiple functions

python - 在 spark(python)中通过 MapReduce 理解分组

java - 为什么 CLASSPATH 对于 Python 失败但对于 RazorSQL 却有效?

python - 无法安装 youtube-dl-api-server

python - 类型错误:需要类似字节的对象,不是 'str',但类型是 'bytes'

python - 如何在Python3中对复杂列表进行自然排序?

bash - 使用 bash 在 ffmpeg 中添加带空格的 mp3 元数据