mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-01 23:12:40 +00:00
use url instead of single formats entry
This commit is contained in:
parent
833b644fff
commit
22e35adefd
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ def _real_extract(self, url):
|
|||
'id': video_file.get('key'),
|
||||
'title': title,
|
||||
'duration': int_or_none(video_file.get('duration')),
|
||||
'formats': [{'url': video_file.text}]
|
||||
'url': video_file.text,
|
||||
})
|
||||
|
||||
info = {
|
||||
|
@ -74,7 +74,7 @@ def _real_extract(self, url):
|
|||
info['_type'] = 'multi_video'
|
||||
info['entries'] = entries
|
||||
elif len(entries) == 1:
|
||||
info['formats'] = entries[0]['formats']
|
||||
info['url'] = entries[0]['url']
|
||||
else:
|
||||
raise ExtractorError(
|
||||
'No files found for the specified AfreecaTV video, either'
|
||||
|
|
Loading…
Reference in a new issue