mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-10-29 18:04:08 +09:00
fixing xhamster file extraction
This commit is contained in:
1 parent
8a5601e42f
commit
354b4b8604
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user