A feature-rich command-line audio/video downloader
[tumblr] Fix thumbnail extraction
Mike Col67379078264f
diff --git a/youtube_dl/extractor/tumblr.py b/youtube_dl/extractor/tumblr.pyindex abbbb9661d..f7bc77c48c 100644--- a/youtube_dl/extractor/tumblr.py+++ b/youtube_dl/extractor/tumblr.py@@ -34,9 +34,11 @@ class TumblrIE(InfoExtractor):video_url = video.group('video_url')ext = video.group('ext')- video_thumbnail = self._search_regex(r'posters(.*?)\[\\x22(?P<thumb>.*?)\\x22',+ video_thumbnail = self._search_regex(+ r'posters.*?\[\\x22(.*?)\\x22',webpage, 'thumbnail', fatal=False) # We pick the first poster- if video_thumbnail: video_thumbnail = video_thumbnail.replace('\\', '')+ if video_thumbnail:+ video_thumbnail = video_thumbnail.replace('\\\\/', '/')# The only place where you can get a title, it's not complete,# but searching in other places doesn't work for all videos