summary refs log tree commit diff
diff options
context:
space:
mode:
authorMike Col <MikeCol@gmx.net>2014-01-27 07:38:55 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-01-27 07:38:55 +0100
commit67379078264fa1538ba6f3387873981f9cee3ab5 (patch)
tree0a719274e05acf502ea38dd5c1908f22d108d169
parentc060b774467f499bc946ae024bc9fc4ecfbc6d67 (diff)
downloadyoutube-dl-67379078264fa1538ba6f3387873981f9cee3ab5.tar.gz
youtube-dl-67379078264fa1538ba6f3387873981f9cee3ab5.tar.xz
youtube-dl-67379078264fa1538ba6f3387873981f9cee3ab5.zip
[tumblr] Fix thumbnail extraction
Signed-off-by: Philipp Hagemeister <phihag@phihag.de>
-rw-r--r--youtube_dl/extractor/tumblr.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/extractor/tumblr.py b/youtube_dl/extractor/tumblr.py
index abbbb9661..f7bc77c48 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