[mpora] Fix player regex
authorSergey M․ <dstftw@gmail.com>
Wed, 9 Jul 2014 12:12:42 +0000 (19:12 +0700)
committerSergey M․ <dstftw@gmail.com>
Wed, 9 Jul 2014 12:12:42 +0000 (19:12 +0700)
youtube_dl/extractor/mpora.py

index 39d6feb98d171f16b2ae5d69d71cde67b3a21372..387935d4db784641377b72f5be9ec5e7649f5908 100644 (file)
@@ -28,7 +28,7 @@ class MporaIE(InfoExtractor):
 
         webpage = self._download_webpage(url, video_id)
         data_json = self._search_regex(
-            r"new FM\.Player\('[^']+',\s*(\{.*?)\);\n", webpage, 'json')
+            r"new FM\.Player\('[^']+',\s*(\{.*?)\).player;", webpage, 'json')
 
         data = json.loads(data_json)