aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M. <dstftw@gmail.com>2014-02-26 02:53:54 -0800
committerSergey M. <dstftw@gmail.com>2014-02-26 02:53:54 -0800
commit2648c436f33e4097427e50039f88fdd1fb751216 (patch)
tree90ac0f4fd4c5af0abdeefe7645d13f60c35577ce /youtube_dl
parent33f1f2c455a26e74347b3c0bfc76134bb5cca3df (diff)
parentb8e1471d3afe2b0b26544cbcc8d4c351cb66eb63 (diff)
Merge pull request #2464 from rzhxeo/xhamster
[XHamsterIE] Make hd video search more robust
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/xhamster.py1
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)