aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* update from upstreamJesús2021-10-181-5774/+0
|
* [utils.py]: Fix command updateJesús2021-06-091-1/+1
|
* [utils] PEP 8Sergey M․2021-04-171-6/+5
|
* [utils] Add support for support for experimental HTTP response status code ↵Sergey M․2021-04-171-6/+56
| | | | 308 Permanent Redirect (refs #27877, refs #28768)
* [utils] add a function to clean podcast URLsRemita Amine2021-01-041-0/+17
|
* [utils] accept only supported protocols in url_or_noneRemita Amine2020-12-301-1/+1
|
* Fix typos (#27084)Josh Soref2020-11-211-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * spelling: authorization Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: brightcove Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: creation Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: exceeded Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: exception Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: extension Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: extracting Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: extraction Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: frontline Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: improve Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: length Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: listsubtitles Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: multimedia Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: obfuscated Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: partitioning Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: playlist Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: playlists Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: restriction Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: services Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: split Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: srmediathek Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: support Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: thumbnail Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: verification Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: whitespaces Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* [utils] Skip ! prefixed code in js_to_jsonSergey M․2020-11-171-2/+3
|
* [utils] Don't attempt to coerce JS strings to numbers in js_to_json (#26851)Kevin O'Connor2020-10-181-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The current logic in `js_to_json` tries to rewrite octal/hex numbers to decimal. However, when the logic actually happens the `"` or `'` have already been trimmed off. This causes what were originally strings, that happen to look like octal/hex numbers, to get rewritten to decimal and returned as a number rather than a string. In practive something like: ```js { "0x40": "foo", "040": "bar", } ``` would get rewritten as: ```json { 64: "foo", 32: "bar } ``` This is problematic since this isn't valid JSON as you cannot have non-string keys.
* [utils] Recognize wav mimetype (closes #26463)Sergey M․2020-09-061-0/+1
|
* [utils] Fix file permissions in write_json_file (closes #12471) (#25122)Rob2020-05-201-0/+6
|
* [utils] Improve cookie files supportSergey M․2020-05-051-5/+77
| | | | | + Add support for UTF-8 in cookie files * Skip malformed cookie file entries instead of crashing (invalid entry len, invalid expires at)
* [utils] Add reference to cookie file formatSergey M․2020-03-101-0/+5
|
* Revert "[utils] Add support for cookies with spaces used instead of tabs"Sergey M․2020-03-101-5/+0
| | | | | | | | | | According to [1] TABs must be used as separators between fields. Files produces by some tools with spaces as separators are considered malformed. 1. https://curl.haxx.se/docs/http-cookies.html This reverts commit cff99c91d150df2a4e21962a3ca8d4ae94533b8c.
* [utils] Add support for cookies with spaces used instead of tabsSergey M․2020-03-081-0/+5
|
* [YoutubeDL] Force redirect URL to unicode on python 2Sergey M․2020-02-291-0/+9
|
* [utils] Improve str_to_intSergey M․2019-12-151-3/+5
|
* [utils] handle int values passed to str_to_intRemita Amine2019-11-291-2/+2
|
* [utils] Add generic caesar cipher and rot47Sergey M․2019-11-271-0/+13
|
* [utils] Handle rd-suffixed day parts in unified_strdate (#23199)InfernalUnderling2019-11-271-0/+3
|
* [utils] Actualize major IPv4 address blocks per countrySergey M․2019-10-291-34/+37
|
* [utils] Improve subtitles_filename (closes #22753)Sergey M․2019-10-181-2/+2
|
* [utils] Introduce random_user_agent and use as default User-Agent (closes ↵Sergey M․2019-06-291-1/+1585
| | | | #21546)
* [utils] Restrict parse_codecs and add theora as known vcodec (#21381)Sergey M․2019-06-141-8/+3
|
* [utils] Improve strip_or_noneSergey M․2019-05-241-2/+2
|
* Fix W504 and disable W503 (closes #20863)Sergey M․2019-05-111-17/+17
|
* [utils] Transliterate "þ" as "th" (#20897)Jakub Wilk2019-05-111-2/+2
| | | | | | | Despite visual similarity "þ" is unrelated to "p". It is normally transliterated as "th": $ echo þ-Þ | iconv -t ASCII//TRANSLIT th-TH
* [utils] Improve int_or_none and float_or_none (#20403)Sergey M․2019-03-231-2/+2
|
* [utils] Introduce parse_bitrateSergey M․2019-03-171-0/+8
|
* Start moving to ytdl-orgSergey M․2019-03-111-9/+9
|
* [utils] strip #HttpOnly_ prefix from cookies files (#20219)remitamine2019-03-031-1/+17
|
* [malltv] Add extractor (closes #18058)Ales Jirasek2019-02-081-1/+1
|
* [utils] Fix urljoin for paths with non-http(s) schemesSergey M․2019-01-201-1/+1
|
* [utils] Fix typoSergey M․2019-01-071-1/+1
|
* [utils] Add language codes replaced in 1989 revision of ISO 639 to ↵Sergey M․2019-01-071-0/+3
| | | | ISO639Utils (closes #18765)
* [YoutubeDL] Introduce YoutubeDLCookieJar and clarify the rationale behind ↵Sergey M․2018-12-091-0/+28
| | | | session cookies (closes #12929)
* [utils] Fix random_birthday to generate existing dates onlyAlexander Seiler2018-12-021-3/+7
|
* [utils] Properly recognize AV1 codec (closes #17506)Sergey M․2018-09-101-1/+1
|
* [utils] Improve remote address skipping and add support for python 2.6 ↵Sergey M․2018-08-291-7/+11
| | | | (closes #17362)
* [utils] Skip remote IP addresses non matching to source address' IP version ↵Andrew Udvare2018-08-291-0/+33
| | | | (closes #13422)
* [utils] Use pure browser header for User-Agent (closes #17236)Sergey M․2018-08-141-1/+1
|
* [utils] Remove return from __init__Huyuumi2018-07-291-1/+1
|
* [utils] Introduce url_or_noneSergey M․2018-07-211-0/+7
|
* [utils] Allow JSONP with empty func name (closes #17028)Sergey M․2018-07-211-1/+1
|
* [utils] Share JSON-LD regexSergey M․2018-07-091-0/+1
|
* [openload] Improve ext extractionEnes2018-06-021-1/+1
|
* [utils] fix style id extraction for namespaced id attribute(closes #16551)Remita Amine2018-05-261-1/+4
|
* [utils] keep the original TV_PARENTAL_GUIDELINES dictRemita Amine2018-05-251-8/+8
|
* [utils] Relax TV Parental Guidelines matchingRemita Amine2018-05-231-7/+10
|
* Improve geo bypass mechanismSergey M․2018-05-021-4/+7
| | | | | | * Introduce geo bypass context * Add ability to bypass based on IP blocks in CIDR notation * Introduce --geo-bypass-ip-block