From: vijayanand nandam Date: Wed, 5 Aug 2015 14:07:59 +0000 (+0530) Subject: fixing xhamster file extraction X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=354b4b8604ec13ccf4bd89b9d1b77cb7246fe379;p=youtube-dl fixing xhamster file extraction --- diff --git a/youtube_dl/extractor/xhamster.py b/youtube_dl/extractor/xhamster.py index b4ad513a0..9d025530f 100644 --- a/youtube_dl/extractor/xhamster.py +++ b/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'', webpage) + mp4 = re.search(r'file:\s+\'([^\']+)\'', webpage) if mp4 is None: raise ExtractorError('Unable to extract media URL') else: