projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
833b644
)
use url instead of single formats entry
author
Peter Rowlands
<peter@pmrowla.com>
Fri, 6 May 2016 01:41:30 +0000
(10:41 +0900)
committer
Peter Rowlands
<peter@pmrowla.com>
Fri, 6 May 2016 01:41:30 +0000
(10:41 +0900)
youtube_dl/extractor/afreecatv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/afreecatv.py
b/youtube_dl/extractor/afreecatv.py
index 9f9399edc3b1403b2c9775e994ca56f410f126d9..c9a4b73118d99037e90c5c82d89fed53fea23260 100644
(file)
--- 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'