[generic] Be more relaxed when looking for aparat embeds (Fixes #2784)
authorPhilipp Hagemeister <phihag@phihag.de>
Mon, 21 Apr 2014 10:37:41 +0000 (12:37 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Mon, 21 Apr 2014 10:37:41 +0000 (12:37 +0200)
youtube_dl/extractor/generic.py

index 4b14cc5bfd99bd8a3176a2fee32ffb1f94c33a30..3c9f98dc305ca82f343caaa0bfcd54cb8df31758 100644 (file)
@@ -531,7 +531,7 @@ class GenericIE(InfoExtractor):
             return OoyalaIE._build_url_result(mobj.group('ec'))
 
         # 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')