Merge remote-tracking branch 'dstftw/smotri.com-broadcast'
[youtube-dl] / youtube_dl / extractor / smotri.py
index f86ee8388c3bce34d7b92931dbbe185a0d7673df..4ea89bf85e7c27cd159af8b6a927a92476b70b0d 100644 (file)
@@ -9,7 +9,7 @@ from .common import InfoExtractor
 from ..utils import (
     compat_urllib_parse,
     compat_urllib_request,
-    ExtractorError
+    ExtractorError,
 )
 
 
@@ -302,7 +302,7 @@ class SmotriBroadcastIE(InfoExtractor):
             adult_content = False
 
         ticket = self._html_search_regex(
-            u'window.broadcast_control.addFlashVar\\(\'file\', \'([^\']+)\'\\);',
+            u'window\.broadcast_control\.addFlashVar\\(\'file\', \'([^\']+)\'\\);',
             broadcast_page, u'broadcast ticket')
 
         url = 'http://smotri.com/broadcast/view/url/?ticket=%s' % ticket
@@ -353,4 +353,4 @@ class SmotriBroadcastIE(InfoExtractor):
             'play_path': broadcast_playpath,
             'rtmp_live': True,
             'rtmp_conn': rtmp_conn
-        }
\ No newline at end of file
+        }