diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2016-12-25 01:50:50 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2016-12-25 01:50:50 +0800 |
commit | 4606c34e19af395a1ddd31d2941d4ccd90e5e279 (patch) | |
tree | 7c996629d26cbf566e8b0e79e03e933a9755ceee /youtube_dl | |
parent | 53a664edf4bf713df0159e604bbc131dde5ed1e6 (diff) |
[extractor/common] Allow non-lang in subtitles' keys
See 264e77c406a3b14f15aafcd036524cb6fe86aa20
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/common.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 07d101aef..6fa7c334e 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -189,9 +189,10 @@ class InfoExtractor(object): uploader_url: Full URL to a personal webpage of the video uploader. location: Physical location where the video was filmed. subtitles: The available subtitles as a dictionary in the format - {language: subformats}. "subformats" is a list sorted from - lower to higher preference, each element is a dictionary - with the "ext" entry and one of: + {tag: subformats}. "tag" is usually a language code, and + "subformats" is a list sorted from lower to higher + preference, each element is a dictionary with the "ext" + entry and one of: * "data": The subtitles file contents * "url": A URL pointing to the subtitles file "ext" will be calculated from URL if missing |