aboutsummaryrefslogtreecommitdiff
path: root/test/test_subtitles.py
AgeCommit message (Collapse)Author
2022-06-25[cleanup] Consistent style for file headspukkandan
2022-06-25[compat] Remove more functionspukkandan
Removing any more will require changes to a large number of extractors
2022-06-20Update to ytdl-commit-8a158a9pukkandan
[NHK] Use new API URL https://github.com/ytdl-org/youtube-dl/commit/6508688e88c83bb811653083db9351702cd39a6a Closes #2337, Closes #4063
2022-05-09[cleanup] Minor fixes (See desc)pukkandan
* [youtube] Fix `--youtube-skip-dash-manifest` * [build] Use `$()` in `Makefile`. Closes #3684 * Fix bug in 385ffb467b2285e85a2a5495b90314ba1f8e0700 * Fix bug in 43d7f5a5d0c77556156a3f8caa6976d3908a1e38 * [cleanup] Remove unnecessary `utf-8` from `str.encode`/`bytes.decode` * [utils] LazyList: Expose unnecessarily "protected" attributes and other minor cleanup
2022-04-12[cleanup] Sort importspukkandan
Using https://github.com/PyCQA/isort isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
2022-04-12[cleanup] Upgrade syntaxpukkandan
Using https://github.com/asottile/pyupgrade 1. `__future__` imports and `coding: utf-8` were removed 2. Files were rewritten with `pyupgrade --py36-plus --keep-percent-format` 3. f-strings were cherry-picked from `pyupgrade --py36-plus` Extractors are left untouched (except removing header) to avoid unnecessary merge conflicts
2022-01-19[Ted] Rewrite extractor (#2359)trasssh
Closes #2343 Authored by: pukkandan, trassshhub
2021-09-08[pbs] Fix subtitle extraction (#813)coletdjnz
Original PR: https://github.com/ytdl-org/youtube-dl/pull/24430, https://github.com/ytdl-org/youtube-dl/pull/17434 Closes: #836, https://github.com/ytdl-org/youtube-dl/issues/18796, https://github.com/ytdl-org/youtube-dl/issues/17273 Authored-by: coletdjnz, gesa, raphaeldore
2021-07-23[test] Use `pytest` instead of `nosetests` (#482)pukkandan
`nosetests` is no longer being maintained : https://github.com/nose-devs/nose/issues/1099 and will stop working in py 3.10 as can be seen in #480
2021-06-06[cleanup] Point all shebang to `python3` (#372)felix
Authored by: fstirlitz
2021-02-25Completely change project name to yt-dlp (#85)Pccode66
* All modules and binary names are changed * All documentation references changed * yt-dlp no longer loads youtube-dlc config files * All URLs changed to point to organization account Co-authored-by: Pccode66 Co-authored-by: pukkandan
2021-01-08Update to ytdl-2021.01.08pukkandan
2020-09-06Merge branch 'master' of https://github.com/zubearc/youtube-dl into zubearcTom-Oliver Heidel
2020-09-05[test/youtube] update subtitle testszubearc
2020-09-02[skip travis] renamingUnknown
to avoid using same folder when using pip install for example
2020-02-29[test_subtitles] Remove obsolete testSergey M․
2018-04-18Fix some testsDan Salmon
2017-04-08[test_subtitles] Fix raiplay testSergey M․
2016-02-04[test_subtitles] update youtube subtitles testsremitamine
2016-01-31[test_subtitles] Fix TestRaiSubtitlesYen Chi Hsuan
RaiIE is renamed to RaiTVIE in 06d5556dface3901a86419b6b125ef377116448f
2015-12-21[test_subtitles] remove BlipTV testremitamine
2015-11-04[test/subtitles] Add test for DemocracynowIEYen Chi Hsuan
2015-08-21[test/subtitles] Add test for ThePlatformFeedIEYen Chi Hsuan
2015-05-27[nrk] Update subtitles testYen Chi Hsuan
Subtitle conversion routine is removed, so the subtitles are TTML now. See 1c7e2e64f6328024711d5fa999d4498396f4cb5c
2015-03-11[funnyordie] Add subtitles testSergey M․
2015-02-23[rtve] Extract subtitlesJaime Marquínez Ferrándiz
2015-02-22[test/subtitles] Update checksum for VikiJaime Marquínez Ferrándiz
2015-02-22[test/subtitles] Remove some testsJaime Marquínez Ferrándiz
Test only with 'allsubtitles', the language selection is already tested in test_YoutubeDL.py
2015-02-22[YoutubeDL] don't set the 'requested_subtitles' without writesubtitles or ↵Jaime Marquínez Ferrándiz
writeautomaticsub
2015-02-19[theplatform] Convert to new subtitles systemJaime Marquínez Ferrándiz
2015-02-18[viki] Convert to new subtitles systemJaime Marquínez Ferrándiz
2015-02-18[rai] Convert to new subtitles systemJaime Marquínez Ferrándiz
2015-02-18[nrk] Convert to new subtitles systemJaime Marquínez Ferrándiz
2015-02-18[mtv] Convert to new subtitles systemJaime Marquínez Ferrándiz
2015-02-18[npo] Convert to new subtitles systemJaime Marquínez Ferrándiz
2015-02-18[lynda] Convert to new subtitles systemJaime Marquínez Ferrándiz
2015-02-17[bliptv] Convert to new subtitles systemJaime Marquínez Ferrándiz
2015-02-16[youtube] Convert to new subtitles systemJaime Marquínez Ferrándiz
The automatic captions are stored in the 'automactic_captions' field, which is used if no normal subtitles are found for an specific language.
2015-02-16[dailymotion] Convert to new subtitles systemJaime Marquínez Ferrándiz
2015-02-16[YoutubeDL] store the subtitles to download in the 'requested_subtitles' fieldJaime Marquínez Ferrándiz
We need to keep the orginal subtitles information, so that the '--load-info' option can be used to list or select the subtitles again. We'll also be able to have a separate field for storing the automatic captions info.
2015-02-16[vimeo] Convert to new subtitles systemJaime Marquínez Ferrándiz
Removed some tests, the behaviour should be checked in a test for the YoutubeDL class
2015-02-16Improve subtitles supportJaime Marquínez Ferrándiz
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-15[test/subtitles] Fix some testsJaime Marquínez Ferrándiz
The checksym for the CeskaTelevize subtitles has changed again, so we just test that it has a reasonable length.
2015-02-13[test/subtitles] Update checksumsJaime Marquínez Ferrándiz
2015-01-07[ceskatelevize] Add subtitles testsSergey M․
2014-12-31[youtube] Add support for automatically translated subtitles (fixes #4555)Jaime Marquínez Ferrándiz
They have a manually uploaded subtitles track and YouTube can transtale it.
2014-11-30[test/test_subtitles] Update checksum for vimeo subtitle fileJaime Marquínez Ferrándiz
2014-11-23PEP8 appliedJouke Waleson
2014-11-16[tests] ModernizePhilipp Hagemeister
2014-10-09[walla] Fix typoSergey M․