]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
xvideos patch by @pocoimporta - closes #370
authorFilippo Valsorda <filippo.valsorda@gmail.com>
Mon, 30 Jul 2012 23:40:29 +0000 (01:40 +0200)
committerFilippo Valsorda <filippo.valsorda@gmail.com>
Mon, 30 Jul 2012 23:40:29 +0000 (01:40 +0200)
youtube-dl
youtube-dl.exe
youtube_dl/InfoExtractors.py

index b3e0cd4221b302881fc5ad75746dd5fc9ad0c7fd..9e1cd4ff3424b8a484d7e025ac5d72c9c376f4a2 100755 (executable)
Binary files a/youtube-dl and b/youtube-dl differ
index c55f5fa8d30a9386b9f2add1d11aaa9c470704ab..250d9f43e4f2c5c2c522bae0d0a7b6f124b6c4c3 100755 (executable)
Binary files a/youtube-dl.exe and b/youtube-dl.exe differ
index 499d9b1aed8c3d4177539179f515d8abdcf981d8..05c4f390f9ad58e424ae183b44c0ce426c2e191e 100644 (file)
@@ -2359,11 +2359,11 @@ class XVideosIE(InfoExtractor):
 
 
                # Extract video thumbnail
-               mobj = re.search(r'http://(?:img.*?\.)xvideos.com/videos/thumbs/[a-fA-F0-9]/[a-fA-F0-9]/[a-fA-F0-9]/([a-fA-F0-9.]+jpg)', webpage)
+               mobj = re.search(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)
                if mobj is None:
                        self._downloader.trouble(u'ERROR: unable to extract video thumbnail')
                        return
-               video_thumbnail = mobj.group(1).decode('utf-8')
+               video_thumbnail = mobj.group(0).decode('utf-8')
 
                info = {
                        'id': video_id,