summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Instead of replacing accented characters with an underscore when sanitizing ↵Adam Thalhammer2016-05-021-2/+7
| | | | file names in restricted mode, replace them with their non-accented equivalents fixes #9347
* Merge pull request #9110 from remitamine/parse_durationSergey M2016-04-211-0/+1
|\ | | | | [utils] imporove parse_duration to handle more formats
| * [utils] imporove parse_duration to handle more formatsremitamine2016-04-211-0/+1
| |
* | [youtube:playlist] Fetch all the videos in a mix (fixes #3837)Jaime Marquínez Ferrándiz2016-04-171-1/+1
| | | | | | | | Since there doesn't seem to be any indication, it stops when there aren't new videos in the webpage.
* | [test/InfoExtractors] add test for _download_jsonJaime Marquínez Ferrándiz2016-04-091-0/+10
| |
* | [test/utils] Add test for date_from_strJaime Marquínez Ferrándiz2016-04-091-0/+8
| |
* | [test/helper] Check got values to be strings for md5: fieldsYen Chi Hsuan2016-04-091-0/+3
|/ | | | Seen in PBSIE tests
* [compat] Handle tuples properly in urlencode()Yen Chi Hsuan2016-04-061-0/+4
| | | | Fixes #9055
* [test_compat] Add tests for compat_urllib_parse_urlencodeSergey M․2016-03-261-0/+7
|
* [test/test_utils] Update for escape_url change (again)Yen Chi Hsuan2016-03-231-1/+1
|
* [test/test_utils] Update for escape_url changeYen Chi Hsuan2016-03-231-1/+1
|
* [utils] Encode hostnames before passing to urllibYen Chi Hsuan2016-03-231-0/+10
| | | | | | | With IDN (Internationalized Domain Name) and a proxy, non-ascii URLs are passed down to urllib/urllib2, causing UnicodeEncodeError Fixes #8890
* [utils] lookup_unit_table: Match word boundary instead of end of stringJaime Marquínez Ferrándiz2016-03-191-0/+2
|
* [test_YoutubeDL] Add test for format_id format selectionSergey M․2016-03-191-0/+5
|
* [utils] PEP 8Sergey M․2016-03-161-3/+3
|
* Merge pull request #8092 from bpfoley/twitter-thumbnailremitamine2016-03-161-0/+40
|\ | | | | [utils] Add extract_attributes for extracting html tag attributes
| * [utils] Add extract_attributes for extracting html tag attributesBrian Foley2016-03-031-0/+40
| | | | | | | | | | | | | | This is much more robust than just using regexps, and handles all the common scenarios, such as empty/no values, repeated attributes, entity decoding, mixed case names, and the different possible value quoting schemes.
* | [bbc] Generalize unit table lookup and add parse_countSergey M․2016-03-131-0/+10
| |
* | [test_YoutubeDL] PEP 8Sergey M․2016-03-101-1/+0
| |
* | [YoutubeDL] Improve _format_noteSergey M․2016-03-101-0/+4
| |
* | Merge pull request #8739 from remitamine/update_url_paramsremitamine2016-03-031-0/+37
|\ \ | | | | | | [utils] add update_url_query function to create or update query string params
| * | [test/test_utils] add more tests for update_url_queryremitamine2016-03-031-0/+9
| | |
| * | [test/test_utils] add tests for update_url_queryremitamine2016-03-031-0/+28
| |/
* | [test/http] Fix failure in JythonYen Chi Hsuan2016-03-031-1/+6
| | | | | | | | | | make offlinetest passed on the latest Jython hg version with patched lib-python/2.7/urllib2.py pulled from CPython 2.7.11
* | [jython] Introduce compat_os_nameYen Chi Hsuan2016-03-031-2/+5
|/ | | | os.name is always 'java' on Jython
* [utils] Multiple changes to base_n()Yen Chi Hsuan2016-02-271-0/+12
| | | | | | | | 1. Renamed to encode_base_n() 2. Allow tables longer than 62 characters 3. Raise ValueError instead of AssertionError for invalid input data 4. Return the first character in the table instead of '0' for number 0 5. Add tests
* [utils] Remove AM/PM from unified_strdate patternsSergey M․2016-02-251-0/+1
|
* [test_iqiyi_sdk_interpreter] Add test for iQiyi loginYen Chi Hsuan2016-02-201-0/+47
|
* [utils] Add OHDave's RSA encryption functionYen Chi Hsuan2016-02-201-0/+8
|
* [test_YoutubeDL] Make test pass until more intelligent sort formats (Closes ↵Sergey M․2016-02-201-1/+1
| | | | #8462)
* [utils] Allow dot in strip_jsonpSergey M․2016-02-071-0/+4
|
* [utils] Add ability to control skipping false values in dict_getSergey M․2016-02-071-2/+11
|
* [utils] Add dict_get convenience methodSergey M․2016-02-071-0/+14
|
* rename _parse_mpd to _parse_mpd_formats and add default value for mpd namespaceremitamine2016-02-061-1/+1
|
* [test_subtitles] update youtube subtitles testsremitamine2016-02-041-6/+6
|
* [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_subtitles] Fix TestRaiSubtitlesYen Chi Hsuan2016-01-311-2/+2
| | | | RaiIE is renamed to RaiTVIE in 06d5556dface3901a86419b6b125ef377116448f
* [test_youtube_lists] Fix TestYoutubeLists.test_youtube_courseYen Chi Hsuan2016-01-311-1/+1
| | | | Youtube entries are now generators
* [youtube:user] Require 'https?://' in the url (fixes #8356)Jaime Marquínez Ferrándiz2016-01-291-1/+1
| | | | | It was matching www.youtube.com/embed/WpfukLMe1TM. The generic extractor automatically adds http:// if it's missing.
* Test codec with a dot '.' in name selection.dyn8882016-01-281-0/+10
|
* [update] fix (unexploitable) BB'06 vulnerability in rsa_verifyFilippo Valsorda2016-01-212-0/+64
| | | | | | | | | | The rsa_verify code was vulnerable to a BB'06 attack, allowing to forge signatures for arbitrary messages if and only if the public key exponent is 3. Since the updates key is hardcoded to 65537, there is no risk for youtube-dl, but I don't want vulnerable code in the wild. The new function adopts a way safer approach of encoding-and-comparing to replace the dangerous parsing code.
* [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.
* Fix typosJakub Wilk2016-01-101-1/+1
| | | | Closes #8200.
* [test_subtitles] remove BlipTV testremitamine2015-12-211-13/+0
|
* [test_utils] Add tests for encode_compat_strSergey M․2015-12-201-0/+5
|
* [utils] Support alternative timestamp format in TTMLYen Chi Hsuan2015-12-191-0/+1
| | | | Fixes #7608
* [utils] Fix TTML conversionYen Chi Hsuan2015-12-191-2/+5
| | | | Tolerate invalid timestamps (closes #7909)
* [utils] Add remove_quotesSergey M․2015-12-141-0/+10
|
* [test/test_all_urls] Update pbs extractor nameJaime Marquínez Ferrándiz2015-12-081-2/+2
| | | | It's in lowercase now (since e15e2ef7a00362fc1e89d9959241efad46325c54).