Browse Source

[XHamsterIE] Make hd video search more robust

totalwebcasting
rzhxeo 11 years ago
parent
commit
b8e1471d3a
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      youtube_dl/extractor/xhamster.py

+ 1
- 0
youtube_dl/extractor/xhamster.py View File

@ -103,6 +103,7 @@ class XHamsterIE(InfoExtractor):
}]
if not hd:
mrss_url = self._search_regex(r'<link rel="canonical" href="([^"]+)', webpage, 'mrss_url')
webpage = self._download_webpage(mrss_url + '?hd', video_id, note='Downloading HD webpage')
if is_hd(webpage):
video_url = extract_video_url(webpage)


Loading…
Cancel
Save