youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 42e4fcf23aace61ec6bf486d79ed0b263f40b73b
parent 9c63128668858c354994d90cba812ffa4c30bdf8
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Tue,  7 Jan 2014 11:04:27 +0100

[generic] Fix regexes

Diffstat:
Myoutube_dl/extractor/generic.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py @@ -303,12 +303,12 @@ class GenericIE(InfoExtractor): return OoyalaIE._build_url_result(mobj.group(1)) # Look for Aparat videos - mobj = re.search(r'<iframe src="(http://www.aparat.com/video/[^"]+)"', webpage) + mobj = re.search(r'<iframe src="(http://www\.aparat\.com/video/[^"]+)"', webpage) if mobj is not None: return self.url_result(mobj.group(1), 'Aparat') # Look for MPORA videos - mobj = re.search(r'<iframe .*?src="(http://mpora.com/videos/[^"]+)"', webpage) + mobj = re.search(r'<iframe .*?src="(http://mpora\.com/videos/[^"]+)"', webpage) if mobj is not None: return self.url_result(mobj.group(1), 'Mpora')