projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98affc1
)
[theplatform] extract subtitles with multiple formats from the metadata
author
Remita Amine
<remitamine@gmail.com>
Tue, 16 Aug 2016 15:19:36 +0000
(16:19 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Tue, 16 Aug 2016 15:22:34 +0000
(16:22 +0100)
youtube_dl/extractor/theplatform.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/theplatform.py
b/youtube_dl/extractor/theplatform.py
index eda899497952fe93a0de380d13b0f6951856ee9a..23067e8c6510ffec73f4036f122e8d810291efef 100644
(file)
--- a/
youtube_dl/extractor/theplatform.py
+++ b/
youtube_dl/extractor/theplatform.py
@@
-73,10
+73,10
@@
class ThePlatformBaseIE(OnceIE):
if isinstance(captions, list):
for caption in captions:
lang, src, mime = caption.get('lang', 'en'), caption.get('src'), caption.get('type')
- subtitles
[lang] = [
{
+ subtitles
.setdefault(lang, []).append(
{
'ext': mimetype2ext(mime),
'url': src,
- }
]
+ }
)
return {
'title': info['title'],