]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[vesti] Fix player regex (Closes #2382)
authorSergey M. <dstftw@gmail.com>
Fri, 14 Feb 2014 15:26:13 +0000 (22:26 +0700)
committerSergey M. <dstftw@gmail.com>
Fri, 14 Feb 2014 15:26:13 +0000 (22:26 +0700)
youtube_dl/extractor/vesti.py

index 7773cec1447810afe64f9aa057f1905cd73036ab..f51d4dcfa6c0cbda5fb8c53d0421ac099cea8295 100644 (file)
@@ -87,8 +87,7 @@ class VestiIE(InfoExtractor):
             video_id = mobj.group('id')
         else:
             mobj = re.search(
-                r'<div.+?id="current-video-holder".*?>\s*<iframe src="http://player\.rutv\.ru/iframe/(?P<type>[^/]+)/id/(?P<id>\d+)[^"]*"',
-                page)
+                r'<iframe.+?src="http://player\.rutv\.ru/iframe/(?P<type>[^/]+)/id/(?P<id>\d+)[^"]*".*?></iframe>', page)
 
             if not mobj:
                 raise ExtractorError('No media found')