fixing xhamster file extraction
authorvijayanand nandam <vijay@cybrilla.com>
Wed, 5 Aug 2015 14:07:59 +0000 (19:37 +0530)
committervijayanand nandam <vijay@cybrilla.com>
Wed, 5 Aug 2015 14:07:59 +0000 (19:37 +0530)
youtube_dl/extractor/xhamster.py

index b4ad513a0d18ecbae558deceb6234efaa5ce5415..9d025530fb9f1fcb14a4cc139c4c67c88c157668 100644 (file)
@@ -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: