summaryrefslogtreecommitdiffstats
path: root/test/test_utils.py
Commit message (Collapse)AuthorAgeFilesLines
...
* [utils] Process non-base 10 integers in js_to_jsonSergey M․2016-05-141-0/+19
|
* [utils] js_to_json: various improvementsfelix2016-05-141-0/+12
| | | | now JS object literals like { /* " */ 0: ",]\xaa<\/p>", } will be correctly converted to JSON.
* [utils] Add Œ and œ found in French to ACCENT_CHARSYen Chi Hsuan2016-05-121-2/+2
| | | | Fixes #9463
* [utils,compat] Move struct_pack and struct_unpack to compat.pyYen Chi Hsuan2016-05-101-4/+0
|
* Instead of replacing accented characters with an underscore when sanitizing ↵Adam Thalhammer2016-05-021-1/+0
| | | | file names in restricted mode, replace them with their non-accented equivalents fixes #9347
* 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
| |
* | [test/utils] Add test for date_from_strJaime Marquínez Ferrándiz2016-04-091-0/+8
|/
* [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] lookup_unit_table: Match word boundary instead of end of stringJaime Marquínez Ferrándiz2016-03-191-0/+2
|
* [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/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
|/
* [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
|
* [utils] Add OHDave's RSA encryption functionYen Chi Hsuan2016-02-201-0/+8
|
* [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
|
* [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
|
* [utils] Check ext with trailing slash against the list of known extensionsSergey M․2015-11-221-0/+3
|
* [test_utils] Add tests for determine_extSergey M․2015-11-221-0/+5
|
* [utils] Skip invalid/non HTML entities (Closes #7518)Sergey M․2015-11-161-2/+2
|
* [utils] unified_strdate: Return None if the date format can't be recognized ↵Jaime Marquínez Ferrándiz2015-11-021-0/+1
| | | | | | (fixes #7340) This issue was introduced with ae12bc3ebb4cb377c2b4337ec255e652b36f5143, it returned 'None'.
* Merge pull request #7296 from jaimeMF/xml_attrib_unicodeSergey M2015-10-311-4/+7
|\ | | | | Use a wrapper around xml.etree.ElementTree.fromstring in python 2.x (…
| * Use a wrapper around xml.etree.ElementTree.fromstring in python 2.x (#7178)Jaime Marquínez Ferrándiz2015-10-251-4/+7
| | | | | | | | Attributes aren't unicode objects, so they couldn't be directly used in info_dict fields (for example '--write-description' doesn't work with bytes).
* | [utils] Support list of xpath in xpath_elementSergey M․2015-10-311-0/+7
| |
* | [utils] Improve parse_iso8601Sergey M․2015-10-281-0/+2
|/
* [utils:js_to_json] Fix bad escape in double quoted stringsSergey M․2015-10-201-0/+3
|
* [test_utils] Add tests for cli option convertersSergey M․2015-09-051-0/+48
|
* [test_utils] Add more tests for xpathSergey M․2015-09-051-0/+28
|
* [utils] Make value optional for find_xpath_attrSergey M․2015-08-011-0/+9
| | | | This allows selecting particular attributes by name but without specifying the value and similar to xpath syntax `[@attrib]`
* [utils] Improve parse_durationYen Chi Hsuan2015-07-221-0/+1
| | | | Now dots are parsed. For example '87 Min.'
* [utils] Support TTML without default namespaceYen Chi Hsuan2015-05-191-0/+15
| | | | In a strict sense such TTML is invalid, but Yahoo uses it.
* [utils] Support 'dur' field in TTMLYen Chi Hsuan2015-05-121-1/+1
|
* [utils] Remove sanitize_url_path_consecutive_slashes()Yen Chi Hsuan2015-05-091-21/+0
| | | | | This function is used only in SohuIE, which is updated to use a new extraction logic.
* [NBC] Enhance embedURL extraction (closes #2549)Yen Chi Hsuan2015-05-041-0/+5
|
* [utils] Add replace_extensionSergey M․2015-05-021-0/+9
|
* [test_utils] Add tests for prepend_extensionSergey M․2015-05-021-0/+9
|
* [ffmpeg] Add dfxp (TTML) subtitles support (#3432, #5146)Yen Chi Hsuan2015-04-251-0/+38
|
* [utils] Remove url_infer_protocolYen Chi Hsuan2015-04-081-5/+0
|
* [udn] Add new extractorYen Chi Hsuan2015-04-081-0/+5
|