[xvideos] Fix thumbnail extraction
authorMike Col <MikeCol@gmx.net>
Wed, 22 Jan 2014 18:01:41 +0000 (19:01 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 22 Jan 2014 18:01:41 +0000 (19:01 +0100)
Signed-off-by: Philipp Hagemeister <phihag@phihag.de>
youtube_dl/extractor/xvideos.py

index 90138d7e523a405c20bae8352c6233b5868860f5..4ee538b5038a08b778b3b03984a74770f299e1b6 100644 (file)
@@ -35,8 +35,8 @@ class XVideosIE(InfoExtractor):
             webpage, u'title')
 
         # Extract video thumbnail
-        video_thumbnail = self._search_regex(r'http://(?:img.*?\.)xvideos.com/videos/thumbs/[a-fA-F0-9]+/[a-fA-F0-9]+/[a-fA-F0-9]+/[a-fA-F0-9]+/([a-fA-F0-9.]+jpg)',
-            webpage, u'thumbnail', fatal=False)
+        video_thumbnail = self._search_regex(r'url_bigthumb=(.+?)&amp',
+             webpage, u'thumbnail', fatal=False)
 
         info = {
             'id': video_id,