1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-26 09:36:46 +00:00

Merge pull request #6467 from vijayanandnandam/master

fixing xhamster file extraction
This commit is contained in:
Sergey M. 2015-08-05 20:21:19 +06:00
commit defce60385

View 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: