mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[allocine] Fix extraction
This commit is contained in:
parent
12ee65ea0d
commit
128244657b
1 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ def _real_extract(self, url):
|
||||||
if model:
|
if model:
|
||||||
model_data = self._parse_json(model, display_id)
|
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]
|
video_id, format_id = url_basename(video_url).split('_')[:2]
|
||||||
formats.append({
|
formats.append({
|
||||||
'format_id': format_id,
|
'format_id': format_id,
|
||||||
|
@ -78,7 +78,7 @@ def _real_extract(self, url):
|
||||||
'url': video_url,
|
'url': video_url,
|
||||||
})
|
})
|
||||||
|
|
||||||
title = model_data['title']
|
title = model_data['videos'][0]['title']
|
||||||
else:
|
else:
|
||||||
video_id = display_id
|
video_id = display_id
|
||||||
media_data = self._download_json(
|
media_data = self._download_json(
|
||||||
|
|
Loading…
Reference in a new issue