1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-25 09:11:34 +00:00

[XHamsterIE] Make hd video search more robust

This commit is contained in:
rzhxeo 2014-02-26 10:01:44 +01:00
parent a83a3139d1
commit b8e1471d3a

View file

@ -103,6 +103,7 @@ class XHamsterIE(InfoExtractor):
}] }]
if not hd: 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') webpage = self._download_webpage(mrss_url + '?hd', video_id, note='Downloading HD webpage')
if is_hd(webpage): if is_hd(webpage):
video_url = extract_video_url(webpage) video_url = extract_video_url(webpage)