1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-27 18:16:44 +00:00

[videomore] Fix embed regex

This commit is contained in:
Sergey M․ 2016-09-21 22:51:36 +07:00
parent 3a5a18705f
commit 12f211d0cb
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -84,7 +84,7 @@ class VideomoreIE(InfoExtractor):
@staticmethod
def _extract_url(webpage):
mobj = re.search(
r'<object[^>]+data=(["\'])https?://videomore.ru/player\.swf\?.*config=(?P<url>https?://videomore\.ru/(?:[^/]+/)+\d+\.xml).*\1',
r'<object[^>]+data=(["\'])https?://videomore\.ru/player\.swf\?.*config=(?P<url>https?://videomore\.ru/(?:[^/]+/)+\d+\.xml).*\1',
webpage)
if mobj:
return mobj.group('url')