summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Rowlands <peter@pmrowla.com>2016-05-06 10:41:30 +0900
committerPeter Rowlands <peter@pmrowla.com>2016-05-06 10:41:30 +0900
commit22e35adefdcea7dccade852ad7dff0953060381d (patch)
tree10026f3b9e377575be824961ab581ebb5a7ebc54
parent833b644fffae4d4cb0807591006e34ef963d9bc0 (diff)
downloadyoutube-dl-22e35adefdcea7dccade852ad7dff0953060381d.tar.gz
youtube-dl-22e35adefdcea7dccade852ad7dff0953060381d.tar.xz
youtube-dl-22e35adefdcea7dccade852ad7dff0953060381d.zip
use url instead of single formats entry
-rw-r--r--youtube_dl/extractor/afreecatv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/afreecatv.py b/youtube_dl/extractor/afreecatv.py
index 9f9399edc..c9a4b7311 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'