aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/utils.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | [HRTi] Implement extractor for Croatian RadiotelevisionAleksandar Topuzovic2016-07-031-0/+2
| |
* | [utils] Add urshift()Yen Chi Hsuan2016-06-261-0/+4
| | | | | | | | Used in IqiyiIE and LeIE
* | [utils] Add strip_or_noneSergey M․2016-06-251-0/+4
| |
* | [utils] Add unified_timestampSergey M․2016-06-251-58/+92
|/
* [downloader/hls] Add support for AES-128 encrypted segments in hlsnative ↵remitamine2016-06-191-0/+9
| | | | downloader
* [utils] Don't transform numbers not starting with a zeroYen Chi Hsuan2016-06-161-1/+1
| | | | Fix test_Viidea and maybe others
* [utils] Add try_getSergey M․2016-06-121-0/+10
| | | | To reduce boilerplate when accessing JSON
* [utils] Change Firefox 44 to 47Paul Henning2016-06-111-1/+1
| | | See commit title.
* [utils] Decode HTML5 entitiesYen Chi Hsuan2016-06-101-2/+10
| | | | Used in test_Vporn_1. Also related to #9270
* [utils] Add audio/mpeg to mimetype2ext()Yen Chi Hsuan2016-06-091-0/+3
| | | | Used in WDR live radios (#6147)
* Added sanitization support for Hungarian letters Ő and Űbzc6p2016-06-021-3/+3
|
* [utils] Use bytes-like objects as header values on Python 2Yen Chi Hsuan2016-06-021-0/+2
|
* [utils] Always decode Location headerYen Chi Hsuan2016-06-021-0/+2
| | | | escape_url is broken for bytes-like objects
* [utils] Remove debugging codesYen Chi Hsuan2016-05-261-2/+0
|
* [utils] Support a new form of dateYen Chi Hsuan2016-05-261-1/+4
| | | | Found in dw.com (#9475)
* [utils] Do not fail on unknown date formats in unified_strdateSergey M․2016-05-221-1/+4
|
* [utils] Allow None in remove_{start,end}Sergey M․2016-05-191-6/+2
|
* [utils] Check for None values in SOCKS proxyYen Chi Hsuan2016-05-171-2/+7
| | | | | Originally reported at https://github.com/rg3/youtube-dl/pull/9287#issuecomment-219617864
* [utils] Fix getheader in urlhandle_detect_extYen Chi Hsuan2016-05-151-5/+1
| | | | Fixes #7049, related to #9440
* [utils] Simplify integer conversion in js_to_jsonSergey M․2016-05-141-3/+3
|
* [utils] Process non-base 10 integers in js_to_jsonSergey M․2016-05-141-0/+12
|
* [utils] js_to_json: various improvementsfelix2016-05-141-14/+16
| | | | now JS object literals like { /* " */ 0: ",]\xaa<\/p>", } will be correctly converted to JSON.
* [utils] Unquote crendentials passed to SOCKS proxiesYen Chi Hsuan2016-05-131-1/+3
| | | | Fixes #9450
* [utils] Add Œ and œ found in French to ACCENT_CHARSYen Chi Hsuan2016-05-121-3/+3
| | | | Fixes #9463
* [compat] Rename shlex_quote and remove unused subprocess_check_outputYen Chi Hsuan2016-05-101-2/+2
|
* [compat] Rename struct_(un)pack to compat_struct_(un)packYen Chi Hsuan2016-05-101-2/+2
|
* [utils] Add rationale for register_socks_protocolsYen Chi Hsuan2016-05-101-0/+2
|
* [utils] Register SOCKS protocols in urllib and support SOCKS4AYen Chi Hsuan2016-05-101-1/+10
|
* [socks] Support SOCKS proxiesYen Chi Hsuan2016-05-101-2/+61
|
* [utils,compat] Move struct_pack and struct_unpack to compat.pyYen Chi Hsuan2016-05-101-19/+1
|
* [utils] Allow empty attribute values in get_element_by_attribute (Closes #9415)Sergey M․2016-05-061-2/+2
|
* improved performance by extracting accented chars to top levelAdam Thalhammer2016-05-031-5/+7
|
* 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
* [utils] Allow None mimetypes in mimetype2extSergey M․2016-04-251-0/+3
|
* Merge pull request #9110 from remitamine/parse_durationSergey M2016-04-211-36/+38
|\ | | | | [utils] imporove parse_duration to handle more formats
| * [utils] imporove parse_duration to handle more formatsremitamine2016-04-211-36/+38
| |
* | [utils] Don't touch URLs if not necessaryYen Chi Hsuan2016-04-091-0/+2
|/ | | | Fix test_Generic_15 (Google redirect)
* [utils] dfxp2srt: add additional namespaceJaime Marquínez Ferrándiz2016-04-041-1/+2
| | | | Used by the ZDF subtitles (#9081).
* [utils] Use update_Request in http_requestSergey M․2016-03-311-6/+1
|
* [utils] Add update_RequestSergey M․2016-03-311-0/+14
|
* [utils] Extract sanitize_url routineSergey M․2016-03-261-2/+5
|
* [compat] Add compat_urllib_parse_urlencode and eliminate encode_dictSergey M․2016-03-261-10/+4
| | | | | | | encode_dict functionality has been improved and moved directly into compat_urllib_parse_urlencode All occurrences of compat_urllib_parse.urlencode throughout the codebase have been replaced by compat_urllib_parse_urlencode Closes #8974
* [utils] Clarify Python versions affected by buggy struct moduleYen Chi Hsuan2016-03-241-1/+2
|
* [utils] Encode hostnames before passing to urllibYen Chi Hsuan2016-03-231-0/+1
| | | | | | | 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-1/+1
|
* utils: lookup_unit_table: Use a stricter regexJaime Marquínez Ferrándiz2016-03-181-1/+1
| | | | In parse_count multiple units start with the same letter, so it would match different units depending on the order they were sorted when iterating over them.
* [utils] Use compat_xpathSergey M․2016-03-181-9/+3
|
* [utils] PEP 8Sergey M․2016-03-161-1/+4
|
* Merge pull request #8092 from bpfoley/twitter-thumbnailremitamine2016-03-161-0/+30
|\ | | | | [utils] Add extract_attributes for extracting html tag attributes
| * [utils] Add extract_attributes for extracting html tag attributesBrian Foley2016-03-031-0/+30
| | | | | | | | | | | | | | 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.