1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[extractor/common] Allow non-lang in subtitles' keys

See 264e77c406
This commit is contained in:
Yen Chi Hsuan 2016-12-25 01:50:50 +08:00
parent 53a664edf4
commit 4606c34e19

View file

@ -189,9 +189,10 @@ class InfoExtractor(object):
uploader_url: Full URL to a personal webpage of the video uploader. uploader_url: Full URL to a personal webpage of the video uploader.
location: Physical location where the video was filmed. location: Physical location where the video was filmed.
subtitles: The available subtitles as a dictionary in the format subtitles: The available subtitles as a dictionary in the format
{language: subformats}. "subformats" is a list sorted from {tag: subformats}. "tag" is usually a language code, and
lower to higher preference, each element is a dictionary "subformats" is a list sorted from lower to higher
with the "ext" entry and one of: preference, each element is a dictionary with the "ext"
entry and one of:
* "data": The subtitles file contents * "data": The subtitles file contents
* "url": A URL pointing to the subtitles file * "url": A URL pointing to the subtitles file
"ext" will be calculated from URL if missing "ext" will be calculated from URL if missing