Skip to content

A feature-rich command-line audio/video downloader

use url instead of single formats entry

Peter Rowlands22e35adefdce
diff --git a/youtube_dl/extractor/afreecatv.py b/youtube_dl/extractor/afreecatv.py
index 9f9399edc3..c9a4b73118 100644
--- a/youtube_dl/extractor/afreecatv.py
+++ b/youtube_dl/extractor/afreecatv.py
@@ -58,7 +58,7 @@ class AfreecaTVIE(InfoExtractor):
'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 @@ class AfreecaTVIE(InfoExtractor):
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'