about summary refs log tree commit diff
path: root/youtube_dl/extractor/xhamster.py
diff options
context:
space:
mode:
authorvijayanand nandam <vijay@cybrilla.com>2015-08-05 19:37:59 +0530
committervijayanand nandam <vijay@cybrilla.com>2015-08-05 19:37:59 +0530
commit354b4b8604ec13ccf4bd89b9d1b77cb7246fe379 (patch)
treed1fedacc1c478e775019f17075dd1c8c41da0bef /youtube_dl/extractor/xhamster.py
parent8a5601e42f6974e6694f01089b4c7e014b6a1b7a (diff)
downloadyoutube-dl-354b4b8604ec13ccf4bd89b9d1b77cb7246fe379.tar.gz
youtube-dl-354b4b8604ec13ccf4bd89b9d1b77cb7246fe379.tar.xz
youtube-dl-354b4b8604ec13ccf4bd89b9d1b77cb7246fe379.zip
fixing xhamster file extraction
Diffstat (limited to 'youtube_dl/extractor/xhamster.py')
-rw-r--r--youtube_dl/extractor/xhamster.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/xhamster.py b/youtube_dl/extractor/xhamster.py
index b4ad513a0..9d025530f 100644
--- a/youtube_dl/extractor/xhamster.py
+++ b/youtube_dl/extractor/xhamster.py
@@ -47,7 +47,7 @@ class XHamsterIE(InfoExtractor):
 
     def _real_extract(self, url):
         def extract_video_url(webpage):
-            mp4 = re.search(r'<video\s+.*?file="([^"]+)".*?>', webpage)
+            mp4 = re.search(r'file:\s+\'([^\']+)\'', webpage)
             if mp4 is None:
                 raise ExtractorError('Unable to extract media URL')
             else: