Commit Graph

47 Commits (b37317d8b0391651b396fc2dc4e35b59e52fddf3)

Author SHA1 Message Date
Sergey M․ 6621ca39a3 [ted] Skip hls quality selection format
Sergey M․ 14f7abfa71 [ted] Lower preference for direct audio since it's mono
Sergey M․ 0f0b5736da [ted] Fix hls audio/video-only formats
Sergey M․ cfbee8a431 [ted] Clarify IE_NAME
Sergey M․ 736785ab63 [ted] Clarify audio/video-only formats
Sergey M․ 66ee7b3234 [ted] Extract all formats (Closes )
Jaime Marquínez Ferrándiz bfc993cc91 Merge branch 'subtitles-rework'
(Closes PR )
Jaime Marquínez Ferrándiz 03091e372f [ted] Always extract the subtitles
The required info is already in the webpage
Sergey M․ a461a11989 [ted] Improve external video handling and add test
minusf 1bd838608f prefer 'code' to 'uri' if present
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.
Jaime Marquínez Ferrándiz cd791a5ea0 [ted] Add support for embed-ssl.ted.com embedded videos
Philipp Hagemeister 1cc79574fc Fix imports and general cleanup
· Import from compat what comes from compat. Yes, some names are available in utils too, but that's an implementation detail.
· Use _match_id consistently whenever possible
· Fix some outdated tests
· Use consistent valid URL (always match the whole protocol, no ^ at start required)
· Use modern test definitions
Sergey M․ de9bd74bc2 [ted] Fix type_watch links extraction
Jouke Waleson 9e1a5b8455 PEP8: applied even more rules
Jaime Marquínez Ferrándiz eb4cb42a02 [ted] Extract duration (closes )
Jaime Marquínez Ferrándiz a72cbfacf0 [ted] Add support for external videos (fixes )
Philipp Hagemeister a8eb5a8e61 [generic] Fix testcases
Philipp Hagemeister 22a6f15061 Move playlist tests to extractors.
From now on, test_download will run these tests. That means we benefit not only from the networking setup in there, but also from the other tests (for example test_all_urls to find problems with _VALID_URLs).
Philipp Hagemeister a9d3890fcb [ted] Remove md5sum from test
This failed multiple times, and the md5sum is not that important anyways.
Sergey M․ 4d2f143ce5 [ted] Update test md5
Sergey M․ 5bec574859 [ted] Update test
Philipp Hagemeister 621f33c9d0 [ted] Extend search for description
Philipp Hagemeister f07a9f6f43 [ted] Remove superfluous u prefixes
Jaime Marquínez Ferrándiz 2d4c98dbd1 [ted] Use the rtmp links if there http downloads are not available.
Philipp Hagemeister 0ba77818f3 [ted] Add width and height (Fixes )
Philipp Hagemeister ac6c104871 [ted] Add support for watch/ URLs (Fixes )
Philipp Hagemeister aab74fa106 [ted] Simplify embed code ()
anovicecodemonkey fc26023120 [TEDIE] Add support for embeded TED video URLs
Jaime Marquínez Ferrándiz b6c1ceccc2 [ted] Add 'http://' to the thumbnail url if it's missing
Jaime Marquínez Ferrándiz 7b9965ea93 [ted] Remove unused import and modernize test
Jaime Marquínez Ferrándiz bacac173a9 [ted] Style fixes
Jaime Marquínez Ferrándiz ca1fee34f2 [ted] Fix playlist extraction and add a test
Jaime Marquínez Ferrándiz 652bee05f0 [ted] Fix video extraction
The site has been redesigned
Philipp Hagemeister 26dca1661e [ted] Updated checksums
Philipp Hagemeister f853f8594d [ted] Use unicode_literals
Philipp Hagemeister f3682997d7 Clean up unused imports and other minor mistakes
Philipp Hagemeister fc2ef392be [ted] Fix playlists (Fixes )
Philipp Hagemeister 463a908705 [ted] simplify
Jaime Marquínez Ferrándiz be6dfd1b49 [ted] Return a single info_dict for talks urls
It failed with the --list-subs option
Ismaël Mejía 4ed3e51080 [ted] fixed error in case of no subtitles present
I created a test, but I leave it commented since TED videos get
new subtitles frequently.
Ismaël Mejía a9a3876d55 [ted] Added support for subtitle download
Philipp Hagemeister 0d8cb1cc14 [ted] Prepare merge
Jaime Marquínez Ferrándiz 177ed935a9 TEDIE: fix the title extraction
Philipp Hagemeister 9c5cd0948f [ted] Fix test checksum
Philipp Hagemeister 6f5ac90cf3 Move tests to the IE definitions
Philipp Hagemeister 9fd5ce0cbe Move TED IE into its own file