youtube-dl/youtube_dl
Jaime Marquínez Ferrándiz a504ced097 Improve subtitles support
For each language the extractor builds a list with the available formats sorted (like for video formats), then YoutubeDL selects one of them using the '--sub-format' option which now allows giving the format preferences (for example 'ass/srt/best').
For each format the 'url' field can be set so that we only download the contents if needed, or if the contents needs to be processed (like in crunchyroll) the 'data' field can be used.

The reasons for this change are:
* We weren't checking that the format given with '--sub-format' was available, checking it in each extractor would be repetitive.
* It allows to easily support giving a format preference.
* The subtitles were automatically downloaded in the extractor, but I think that if you use for example the '--dump-json' option you want to finish as fast as possible.

Currently only the ted extractor has been updated, but the old system still works.
2015-02-16 21:51:03 +01:00
..
downloader [downloader/external] Simplify source_address 2015-02-02 20:33:25 +01:00
extractor Improve subtitles support 2015-02-16 21:51:03 +01:00
postprocessor Improve subtitles support 2015-02-16 21:51:03 +01:00
__init__.py Improve subtitles support 2015-02-16 21:51:03 +01:00
__main__.py [test_unicode_literals] Arm unicode_literals check 2014-11-26 20:01:22 +01:00
aes.py [aes] style: Put __all__ variable at the end of the file 2015-02-11 18:15:15 +01:00
cache.py [cache] Fix writing to paths with unicode characters 2014-11-19 00:02:24 +01:00
compat.py [compat] Correct compat_basestring definition 2015-02-01 11:37:00 +01:00
jsinterp.py [jsinterp] Correct div command 2015-02-02 01:49:32 +01:00
options.py Improve subtitles support 2015-02-16 21:51:03 +01:00
swfinterp.py Fix imports and general cleanup 2014-12-13 12:35:45 +01:00
update.py Add new option --source-address 2015-01-10 19:56:51 +01:00
utils.py [camdemy] Simplify and make more robust (#4938) 2015-02-12 08:55:06 +01:00
version.py release 2015.02.11 2015-02-11 19:02:39 +01:00
YoutubeDL.py Improve subtitles support 2015-02-16 21:51:03 +01:00