[voxmedia] fix volume embed extraction
authorremitamine <remitamine@gmail.com>
Sun, 22 May 2016 19:36:23 +0000 (20:36 +0100)
committerremitamine <remitamine@gmail.com>
Sun, 22 May 2016 19:37:35 +0000 (20:37 +0100)
youtube_dl/extractor/voxmedia.py

index 0c6b1f0305801d71bd942b3e2ee9ee307cb4e191..9d73600aa8b752985f3b3b2c4375af343e1c3d6b 100644 (file)
@@ -117,7 +117,7 @@ class VoxMediaIE(InfoExtractor):
             volume_webpage = self._download_webpage(
                 'http://volume.vox-cdn.com/embed/%s' % volume_uuid, volume_uuid)
             video_data = self._parse_json(self._search_regex(
-                r'Volume\.createVideo\(({.+})\s*,\s*{.*}\);', volume_webpage, 'video data'), volume_uuid)
+                r'Volume\.createVideo\(({.+})\s*,\s*{.*}\s*,\s*\[.*\]\s*,\s*{.*}\);', volume_webpage, 'video data'), volume_uuid)
             for provider_video_type in ('ooyala', 'youtube'):
                 provider_video_id = video_data.get('%s_id' % provider_video_type)
                 if provider_video_id: