Parcourir la source

fixing xhamster file extraction

vijayanand nandam il y a 10 ans
Parent
commit
354b4b8604
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      youtube_dl/extractor/xhamster.py

+ 1 - 1
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: