mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-23 02:32:16 +00:00
[tumblr] Fix thumbnail extraction
Signed-off-by: Philipp Hagemeister <phihag@phihag.de>
This commit is contained in:
parent
c060b77446
commit
6737907826
1 changed files with 4 additions and 2 deletions
|
@ -34,9 +34,11 @@ class TumblrIE(InfoExtractor):
|
||||||
video_url = video.group('video_url')
|
video_url = video.group('video_url')
|
||||||
ext = video.group('ext')
|
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
|
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,
|
# The only place where you can get a title, it's not complete,
|
||||||
# but searching in other places doesn't work for all videos
|
# but searching in other places doesn't work for all videos
|
||||||
|
|
Loading…
Reference in a new issue