ytdl-nightly/test
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
..
swftests [swfinterp] Add more builtins and improve static variables 2014-11-17 07:54:06 +01:00
__init__.py Add support for single-test tox runs 2013-10-12 13:17:11 -04:00
helper.py [franceculture] Rewrite for new HTML scheme (Fixes #4853) 2015-02-03 10:17:13 +01:00
parameters.json [test/parameters.json] Set 'fixup' to 'never' 2015-02-11 17:25:04 +01:00
test_InfoExtractor.py [InfoExtractor/common] Correct and test meta tag matching 2015-01-08 16:14:50 +01:00
test_YoutubeDL.py [test/test_YoutubeDL] Remove debug print call 2015-02-06 23:58:01 +01:00
test_age_restriction.py [test_age_restriction] remove misbehaving test 2015-01-08 18:03:29 +01:00
test_all_urls.py [twitch] Move URL matching tests into extractor 2015-01-22 18:18:21 +01:00
test_cache.py [test_cache] Add a dot in the file name 2014-09-04 04:51:52 +02:00
test_compat.py [test/test_compat] Restore the old value of the HOME environment variable 2014-11-19 00:02:24 +01:00
test_download.py [test_download] Remove references to "file" in test definitions 2015-02-01 15:21:18 +01:00
test_execution.py [tests] Modernize 2014-11-16 15:17:48 +01:00
test_http.py [test_http] PEP8 2015-01-30 03:06:40 +01:00
test_jsinterp.py [jsinterp] Beef up and add tests 2015-02-01 22:38:29 +01:00
test_subtitles.py Improve subtitles support 2015-02-16 21:51:03 +01:00
test_swfinterp.py [tests] Modernize 2014-11-16 15:17:48 +01:00
test_unicode_literals.py [test/test_unicode_literals] Remove duplicated imports 2014-12-16 20:33:23 +01:00
test_utils.py [YoutubeDL] Add generic video filtering (Fixes #4916) 2015-02-10 03:32:24 +01:00
test_write_annotations.py [test_unicode_literals] Arm unicode_literals check 2014-11-26 20:01:22 +01:00
test_youtube_lists.py [test_unicode_literals] Arm unicode_literals check 2014-11-26 20:01:22 +01:00
test_youtube_signature.py [test/test_youtube_signature] Use fake YDL 2015-02-10 05:28:59 +01:00
testcert.pem Add a test for --no-check-certificate 2015-01-30 02:57:37 +01:00