aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorplroman <dev@plr.pm>2017-03-28 23:23:20 +0200
committerSergey M <dstftw@gmail.com>2017-03-29 05:23:20 +0800
commit128244657b92582f7f4793c2d1be86b04032ac7f (patch)
tree2efc6248ff8ae0723719f702be960ceda3282f23 /youtube_dl/extractor
parent12ee65ea0d09c6ac42ad06b3d561b4a26db00cfe (diff)
[allocine] Fix extraction
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/allocine.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/allocine.py b/youtube_dl/extractor/allocine.py
index 90f11d39f..0463a070b 100644
--- a/youtube_dl/extractor/allocine.py
+++ b/youtube_dl/extractor/allocine.py
@@ -70,7 +70,7 @@ class AllocineIE(InfoExtractor):
if model:
model_data = self._parse_json(model, display_id)
- for video_url in model_data['sources'].values():
+ for video_url in model_data['videos'][0]['sources'].values():
video_id, format_id = url_basename(video_url).split('_')[:2]
formats.append({
'format_id': format_id,
@@ -78,7 +78,7 @@ class AllocineIE(InfoExtractor):
'url': video_url,
})
- title = model_data['title']
+ title = model_data['videos'][0]['title']
else:
video_id = display_id
media_data = self._download_json(