0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-27 03:03:01 +00:00

[generic] Be more relaxed when looking for aparat embeds (Fixes #2784)

This commit is contained in:
Philipp Hagemeister 2014-04-21 12:37:41 +02:00
parent 621f33c9d0
commit 48099643cc

View file

@ -531,7 +531,7 @@ def _real_extract(self, url):
return OoyalaIE._build_url_result(mobj.group('ec')) return OoyalaIE._build_url_result(mobj.group('ec'))
# Look for Aparat videos # 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: if mobj is not None:
return self.url_result(mobj.group(1), 'Aparat') return self.url_result(mobj.group(1), 'Aparat')