Browse Source

XHamster: Can't see the description anywhere in the UI

master
Filippo Valsorda 11 years ago
parent
commit
8b59a98610
1 changed files with 5 additions and 4 deletions
  1. 9
      youtube_dl/InfoExtractors.py

9
youtube_dl/InfoExtractors.py

@ -4326,9 +4326,10 @@ class XHamsterIE(InfoExtractor):
webpage, u'title')
video_title = unescapeHTML(video_title)
video_description = self._search_regex(r'<span>Description: </span>(?P<description>[^<]+)',
webpage, u'description', fatal=False)
if video_description: video_description = unescapeHTML(video_description)
# Can't see the description anywhere in the UI
# video_description = self._search_regex(r'<span>Description: </span>(?P<description>[^<]+)',
# webpage, u'description', fatal=False)
# if video_description: video_description = unescapeHTML(video_description)
mobj = re.search(r'hint=\'(?P<upload_date_Y>[0-9]{4})-(?P<upload_date_m>[0-9]{2})-(?P<upload_date_d>[0-9]{2}) [0-9]{2}:[0-9]{2}:[0-9]{2} [A-Z]{3,4}\'', webpage)
if mobj:
@ -4348,7 +4349,7 @@ class XHamsterIE(InfoExtractor):
'url': video_url,
'ext': video_extension,
'title': video_title,
'description': video_description,
# 'description': video_description,
'upload_date': video_upload_date,
'uploader_id': video_uploader_id,
'thumbnail': video_thumbnail

Loading…
Cancel
Save