aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_YoutubeDL.py
Commit message (Collapse)AuthorAgeFilesLines
* [YoutubeDL] Add support for string formatting operations in output templateSergey M․2017-02-231-0/+14
|
* [test_YoutubeDL] Fix invalid escape sequencesSergey M․2017-02-151-2/+2
|
* [utils] Add support for quoted string literals in --match-filter (closes ↵Sergey M․2017-02-151-0/+24
| | | | #8050, closes #12142, closes #12144)
* [utils] Fix --match-filter for int-like strings (closes #11082)Sergey M․2016-10-311-0/+6
|
* [YoutubeDL] Fix format selection with filters (Closes #10083)Sergey M․2016-07-161-0/+34
|
* [test_YoutubeDL] Add test for format_id format selectionSergey M․2016-03-191-0/+5
|
* [test_YoutubeDL] PEP 8Sergey M․2016-03-101-1/+0
|
* [YoutubeDL] Improve _format_noteSergey M․2016-03-101-0/+4
|
* [test_YoutubeDL] Make test pass until more intelligent sort formats (Closes ↵Sergey M․2016-02-201-1/+1
| | | | #8462)
* rename _parse_mpd to _parse_mpd_formats and add default value for mpd namespaceremitamine2016-02-061-1/+1
|
* [test_YoutubeDL] Fix test_youtube_format_selectionYen Chi Hsuan2016-02-031-0/+11
| | | | | Broken since a6c2c24479e5f4827ceb06f64d855329c0a6f593. Thanks to @jaimeMF and @anisse for pointing that out
* [YoutubeDL] Do not override ie_key in url_transparentYen Chi Hsuan2016-02-011-0/+37
|
* Test codec with a dot '.' in name selection.dyn8882016-01-281-0/+10
|
* [YoutubeDL] urlopen: disable the 'file:' protocol (#8227)Jaime Marquínez Ferrándiz2016-01-141-1/+6
| | | | | | | | | | | | | If someone is running youtube-dl on a server to deliver files, the user could input 'file:///some/important/file' and youtube-dl would save that file as a video giving access to sensitive information to the user. 'file:' urls can be filtered, but the user can use an URL to a crafted m3u8 manifest like: #EXTM3U #EXT-X-MEDIA-SEQUENCE:0 #EXTINF:10.0 file:///etc/passwd #EXT-X-ENDLIST With this patch 'file:' URLs raise URLError like for unknown protocols.
* [YoutubeDL] format spec: correctly handle dashes and other unused operatorsJaime Marquínez Ferrándiz2015-08-041-0/+6
| | | | 'mp4-baseline-16x9' must be handled as a single string, but the '-' was treated as an operator.
* YoutubeDL: format spec: don't accept a bare '/' (#6124)Jaime Marquínez Ferrándiz2015-08-031-0/+1
|
* [YoutubeDL] format spec: add additional checks for invalid syntaxJaime Marquínez Ferrándiz2015-07-101-0/+10
|
* [YoutubeDL] format spec: Do not fail when a filter gives an empty resultJaime Marquínez Ferrándiz2015-07-041-1/+8
| | | | For example with 'best[height<40]' we ended getting a 'IndexError: list index out of range'.
* [YoutubeDL] format spec: fix handling of '/' with ','Jaime Marquínez Ferrándiz2015-07-041-0/+8
| | | | When using 'bestvideo/best,bestaudio', 'bestvideo/best' must be set as the current_selector (instead of appending it to the selectors), otherwise when it gets the ',' it would append 'None' to the selectors.
* [YoutubeDL] format spec: Fix handling of '+' with '/'Jaime Marquínez Ferrándiz2015-06-301-0/+8
| | | | 'bestvideo+bestaudio/best' was incorrectly interpreted as 'bestvideo+(bestaudio/best)', so it would fail if 'bestaudio' doesn't exist instead of falling back to 'best'.
* [YoutubeDL] format spec: allow grouping specifiers with parenthesesJaime Marquínez Ferrándiz2015-06-291-0/+24
|
* [YoutubeDL] format spec: treat 'all' like a normal specifierJaime Marquínez Ferrándiz2015-06-281-0/+5
| | | | So you can use filters with it, for example 'all[width>=400][width<=600]'.
* [YoutubeDL] rework how the format spec is processedJaime Marquínez Ferrándiz2015-06-281-9/+18
| | | | | The spec string is processed using 'tokenize.tokenize' to split it in words and operators, the filters are still processed using regular expressions. This should make easier to allow grouping operators with parens.
* [test/YoutubeDL] Add tests for 'playliststart', 'playlistend' and ↵Jaime Marquínez Ferrándiz2015-05-151-0/+46
| | | | 'playlist_items'
* Make 'best' format only match non-DASH formats (closes #5554)Jaime Marquínez Ferrándiz2015-04-291-2/+2
| | | | | Otherwise it's impossible to only download non-DASH formats, for example `best[height=?480]/best` would download a DASH video if it's the only one with height=480, instead for falling back to the second format specifier. For audio only urls (soundcloud, bandcamp ...), the best audio will be downloaded as before.
* Remove the --max-quality optionJaime Marquínez Ferrándiz2015-04-251-33/+0
| | | | | It doesn't work well with 'bestvideo' and 'bestaudio' because they are usually before the max quality. Format filters should be used instead, they are more flexible and don't require the requested quality to exist for each video.
* Postprocessors: use a list for the files that can be deletedJaime Marquínez Ferrándiz2015-04-181-6/+15
| | | | We could only know if we had to delete the original file, but this system allows to specify us more files (like subtitles).
* [test/YoutubeDL] test match_filterJaime Marquínez Ferrándiz2015-03-201-0/+68
|
* [test/YoutubeDL] split in two classesJaime Marquínez Ferrándiz2015-03-201-0/+2
| | | | The name was misleading
* [test/YoutubeDL] Use valid urlsJaime Marquínez Ferrándiz2015-03-141-22/+24
| | | | It failed on python 3.4 when building the http_headers field
* [YoutubeDL] only add normal subtitles to the 'requested_subtitles' field if ↵Jaime Marquínez Ferrándiz2015-02-221-0/+7
| | | | 'writesubtitles' is True
* [test/YoutubeDL] Add test for subtitlesJaime Marquínez Ferrándiz2015-02-221-0/+52
| | | | Updated the offlinetest make target to not skip it
* [test/test_YoutubeDL] Remove debug print callJaime Marquínez Ferrándiz2015-02-061-1/+0
|
* [test/YoutubeDL] Add a simple test for postprocesorsJaime Marquínez Ferrándiz2015-02-061-0/+32
| | | | Just checks that the 'keepvideo' option works as intended.
* [YoutubeDL] Allow filtering by properties (Fixes #4584)Philipp Hagemeister2015-01-231-0/+55
|
* [YoutubeDL] Allow selection by more extensionsPhilipp Hagemeister2015-01-081-0/+33
|
* [tests] Remove format 138 from tests (#4559)Philipp Hagemeister2015-01-041-1/+1
|
* PEP8 appliedJouke Waleson2014-11-231-0/+1
|
* [test_YoutubeDL] Reorder formats (#3542)Philipp Hagemeister2014-08-221-1/+1
|
* fixed (what I assume was a typo) that caused test_format_note to always fail.codesparkle2014-05-211-2/+2
| | | | This test was introduced in c57f7757101690681af2eb8c40c8bf81bbe6e64f.
* [YoutubeDL] Add simple tests for format_note (Closes #2825)Philipp Hagemeister2014-04-301-1/+7
|
* [tests] Fix YoutubeDL testsPhilipp Hagemeister2014-04-041-31/+43
| | | | Since bec1fad, the id, title, and url (also in formats) keys are mandatory. Change the tests to reflect that.
* Add bestvideo and worstvideo to special format names (#2163)Jaime Marquínez Ferrándiz2014-03-141-0/+18
|
* Use unicode_literals in test_YoutubeDLPhilipp Hagemeister2014-01-221-62/+64
|
* Add -f bestaudio (Fixes #2163)Philipp Hagemeister2014-01-221-0/+30
|
* Add more tests for format selectionPhilipp Hagemeister2013-12-241-9/+66
|
* [YoutubeDL] fix tests (Closes #2036)Philipp Hagemeister2013-12-231-8/+8
|
* Set 'NA' as the default value for missing fields in the output template ↵Jaime Marquínez Ferrándiz2013-12-091-0/+15
| | | | | | (fixes #1931) Remove the `except KeyError` clause, it won't get raised anymore
* Set the extra_info inside YoutubeDL.process_ie_result and set only if the ↵Jaime Marquínez Ferrándiz2013-11-031-0/+12
| | | | keys are missing
* Fix YouTubeDL testPhilipp Hagemeister2013-10-281-4/+4
|