Skip to content

Commit

Permalink
xvideos patch by @pocoimporta - closes #370
Browse files Browse the repository at this point in the history
  • Loading branch information
FiloSottile committed Jul 30, 2012
1 parent 3210735 commit 363a4e1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified youtube-dl
Binary file not shown.
Binary file modified youtube-dl.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions youtube_dl/InfoExtractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -2359,11 +2359,11 @@ def _real_extract(self, url):


# 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,
Expand Down

0 comments on commit 363a4e1

Please sign in to comment.