[generic] Fix regexes
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 7 Jan 2014 10:04:27 +0000 (11:04 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 7 Jan 2014 10:04:27 +0000 (11:04 +0100)
youtube_dl/extractor/generic.py

index c1f393e390c5dc87be198269582c6c5358ca201a..70001f87d7b5d7734a228feb80b6d2a45a92c174 100644 (file)
@@ -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')