Browse Source

[voxmedia] fix volume embed extraction

totalwebcasting
remitamine 9 years ago
parent
commit
102810ef04
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/voxmedia.py

+ 1
- 1
youtube_dl/extractor/voxmedia.py View File

@ -117,7 +117,7 @@ class VoxMediaIE(InfoExtractor):
volume_webpage = self._download_webpage( volume_webpage = self._download_webpage(
'http://volume.vox-cdn.com/embed/%s' % volume_uuid, volume_uuid) 'http://volume.vox-cdn.com/embed/%s' % volume_uuid, volume_uuid)
video_data = self._parse_json(self._search_regex( 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'): for provider_video_type in ('ooyala', 'youtube'):
provider_video_id = video_data.get('%s_id' % provider_video_type) provider_video_id = video_data.get('%s_id' % provider_video_type)
if provider_video_id: if provider_video_id:


Loading…
Cancel
Save