Browse Source

[redtube] Add support for thumbnails

Signed-off-by: Philipp Hagemeister <phihag@phihag.de>
totalwebcasting
Mike Col 11 years ago
committed by Philipp Hagemeister
parent
commit
9d11a41fe4
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      youtube_dl/extractor/redtube.py

+ 5
- 0
youtube_dl/extractor/redtube.py View File

@ -33,6 +33,10 @@ class RedTubeIE(InfoExtractor):
r'<h1 class="videoTitle[^"]*">(.+?)</h1>',
webpage, u'title')
video_thumbnail = self._html_search_regex(
r'playerInnerHTML.+?<img\s+src="(.+?)"',
webpage, u'thumbnail', fatal=False)
# No self-labeling, but they describe themselves as
# "Home of Videos Porno"
age_limit = 18
@ -42,5 +46,6 @@ class RedTubeIE(InfoExtractor):
'url': video_url,
'ext': video_extension,
'title': video_title,
'thumbnail': video_thumbnail,
'age_limit': age_limit,
}

Loading…
Cancel
Save