projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
53a664e
)
[extractor/common] Allow non-lang in subtitles' keys
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 24 Dec 2016 17:50:50 +0000
(
01:50
+0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 24 Dec 2016 17:50:50 +0000
(
01:50
+0800)
See
264e77c406a3b14f15aafcd036524cb6fe86aa20
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 07d101aef8f1e4426ee26eaf36c307efe8b23bb9..6fa7c334ea9e7ebafbb7805768e55e4f43ca00df 100644
(file)
--- 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
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
* "data": The subtitles file contents
* "url": A URL pointing to the subtitles file
"ext" will be calculated from URL if missing