1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 03:32:05 +00:00

[tvc] Fix embed regex

This commit is contained in:
Sergey M․ 2015-06-12 19:31:52 +06:00
parent 9872d3110c
commit 3d535e0471

View file

@ -27,7 +27,7 @@ class TVCIE(InfoExtractor):
@classmethod @classmethod
def _extract_url(cls, webpage): def _extract_url(cls, webpage):
mobj = re.search( mobj = re.search(
r'<iframe[^>]+?src=(["\'])(?P<url>(?:http://)?(?:www\.)?tvc\.ru/video/iframe/id/[^"]+)\1', webpage) r'<iframe[^>]+?src=(["\'])(?P<url>(?:http:)?//(?:www\.)?tvc\.ru/video/iframe/id/[^"]+)\1', webpage)
if mobj: if mobj:
return mobj.group('url') return mobj.group('url')