1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-25 17:27:36 +00:00

Merge pull request #2464 from rzhxeo/xhamster

[XHamsterIE] Make hd video search more robust
This commit is contained in:
Sergey M. 2014-02-26 02:53:54 -08:00
commit 2648c436f3

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)