Commit Graph

26 Commits (6e76104d66624a8f742d1e0d210a35452a79aec8)

Author SHA1 Message Date
Philipp Hagemeister 44a5f1718a Simplify tests
* Make them directly executable again
* Move common stuff (md5, parameters) to helper
* Never import *
* General clean up
Filippo Valsorda d3f46b9aa5 Add support for single-test tox runs
Use a sintax like
    tox test.test_download:TestDownload.test_NowVideo
to run the specific test on all the tox environments (Python versions)
Filippo Valsorda 00fcc17aee add capability to suppress expected warnings in tests
Jaime Marquínez Ferrándiz 0b7f31184d Now --all-sub is a modifier to --write-sub and --write-auto-sub (closes )
For keeping backwards compatibility --all-sub sets --write-sub if --write-auto-sub is not given
Ismael Mejia d6e203b3dc [subtitles] fixed multiple subtitles language separated by comma after merge
As mentioned in the pull request, I forgot to include this changes.
aa6a10c44a
Ismael Mejia d80a064eff [subtitles] Added tests to check correct behavior when no subtitles are
available
Ismael Mejia 447591e1ae [test] Cleaned subtitles tests
Ismael Mejia 33eb0ce4c4 [subtitles] removed only-sub option (--skip-download achieves the same
functionality)
Jaime Marquínez Ferrándiz 5d51a883c2 Use a dictionary for storing the subtitles
The errors while getting the subtitles are reported as warnings, if no subtitles are found return and empty dict.
Philipp Hagemeister 112da0a0ce Simplify FakeYDL
Ismael Mejia 65cceef8f4 Added support for additional vtt subtitle format (WebVTT) in youtube-dl.
Jaime Marquínez Ferrándiz b004821fa9 Add the option "--write-auto-sub" to download automatic subtitles from Youtube
Now automatic subtitles are only downloaded if the option is given.
(closes )
Jaime Marquínez Ferrándiz 8bf8b5a577 Use the new class in the tests
Philipp Hagemeister 0824c28c8b Remove mentions of old InfoExtractors module
Jaime Marquínez Ferrándiz dc1c355b72 YoutubeIE: fallback to automatic captions when subtitles aren't found (closes )
Also modify test_youtube_subtitles to support running the tests in any order.
Jaime Marquínez Ferrándiz 057c9938a1 Import FileDownloader in test_youtube_subtitles
Fix last commit
Jaime Marquínez Ferrándiz 9259966132 test_youtube_subtitles: FakeDownloader inherits form FileDownloader
Philipp Hagemeister 8749b71273 Fix FakeDownloaders
Jaime Marquínez Ferrándiz 49da66e459 The test video for subtitles has added a new language
Ismael Mejia 2a4093eaf3 Added new option '--list-subs' to show the available subtitle languages
Ismael Mejia 9e62bc4439 Added new option '--sub-format' to choose the format of the subtitles to downloade (defaut=srt)
Ismael Mejia ae608b8076 Added new option '--all-srt' to download all the subtitles of a video.
Only works in youtube for the moment.
Ismael Mejia cdb130b09a Added new option '--only-srt' to download only the subtitles of a video
Improved option '--srt-lang'
 - it shows the argument in case of missing subtitles
 - added language suffix for non-english languages (e.g. video.it.srt)
Ismael Mejia 2e5d60b7db Removed conversion from youtube closed caption format to srt since youtube api supports the 'srt' format
Filippo Valsorda 6b3aef80ce better Vimeo tests; fixed a couple of VimeoIE fields
Filippo Valsorda 5e5ddcfbcf test subtitles