From: Filippo Valsorda Date: Mon, 30 Jul 2012 23:40:29 +0000 (+0200) Subject: xvideos patch by @pocoimporta - closes #370 X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=363a4e1114c79144c6dd535a5367f8e3612f3dfb;p=youtube-dl xvideos patch by @pocoimporta - closes #370 --- diff --git a/youtube-dl b/youtube-dl index b3e0cd422..9e1cd4ff3 100755 Binary files a/youtube-dl and b/youtube-dl differ diff --git a/youtube-dl.exe b/youtube-dl.exe index c55f5fa8d..250d9f43e 100755 Binary files a/youtube-dl.exe and b/youtube-dl.exe differ diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index 499d9b1ae..05c4f390f 100644 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -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,