1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-23 08:17:00 +00:00

fixing xhamster file extraction

This commit is contained in:
vijayanand nandam 2015-08-05 19:37:59 +05:30
parent 8a5601e42f
commit 354b4b8604

View file

@ -47,7 +47,7 @@ class XHamsterIE(InfoExtractor):
def _real_extract(self, url): def _real_extract(self, url):
def extract_video_url(webpage): def extract_video_url(webpage):
mp4 = re.search(r'<video\s+.*?file="([^"]+)".*?>', webpage) mp4 = re.search(r'file:\s+\'([^\']+)\'', webpage)
if mp4 is None: if mp4 is None:
raise ExtractorError('Unable to extract media URL') raise ExtractorError('Unable to extract media URL')
else: else: