diff options
author | rzhxeo <[email protected]> | 2014-02-26 10:01:44 +0100 |
---|---|---|
committer | rzhxeo <[email protected]> | 2014-02-26 10:01:44 +0100 |
commit | b8e1471d3afe2b0b26544cbcc8d4c351cb66eb63 (patch) | |
tree | 46bc33af37aa01e1ed004df66d4c6346a2126115 | |
parent | a83a3139d1b42b5ca0c947c8e083ec1877622d16 (diff) | |
download | youtube-dl-b8e1471d3afe2b0b26544cbcc8d4c351cb66eb63.tar.gz youtube-dl-b8e1471d3afe2b0b26544cbcc8d4c351cb66eb63.zip |
[XHamsterIE] Make hd video search more robust
-rw-r--r-- | youtube_dl/extractor/xhamster.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/extractor/xhamster.py b/youtube_dl/extractor/xhamster.py index a75e1380d..5374495f9 100644 --- a/youtube_dl/extractor/xhamster.py +++ b/youtube_dl/extractor/xhamster.py @@ -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) |