跳过下载 dash manafest

Skip downloading dash manafest

我正在尝试使用 youtube-dl 来抓取 youtube。我的目标是让它找到 url 和 return 的缩略图。不确定是否需要下载破折号。

这是我到目前为止的内容,但它仍然显示 "Downloading dash manafest"

from __future__ import unicode_literals
import youtube_dl


class MyLogger(object):
    def debug(self, msg):
        print msg
        pass

    def warning(self, msg):
        print msg
        pass

    def error(self, msg):
        print(msg)


def my_hook(d):
    if d['status'] == 'finished':
        print('Done downloading, now converting ...')


ydl_opts = {
    'list_thumbnails:': True,
    '--youtube-skip-dash-manifest':True,
    'logger': MyLogger(),
    'progress_hooks': [my_hook],
}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
    ydl.extract_info('http://www.youtube.com/watch?v=BaW_jenozKc',  download=False, process=False)

正确选项是'youtube_include_dash_manifest': False