aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
AgeCommit message (Collapse)Author
2020-11-21Fix typos (#27084)Josh Soref
* 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>
2020-11-17[utils] Skip ! prefixed code in js_to_jsonSergey M․
2020-10-18[utils] Don't attempt to coerce JS strings to numbers in js_to_json (#26851)Kevin O'Connor
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.
2020-09-06[utils] Recognize wav mimetype (closes #26463)Sergey M․
2020-05-20[utils] Fix file permissions in write_json_file (closes #12471) (#25122)Rob
2020-05-05[utils] Improve cookie files supportSergey M․
+ Add support for UTF-8 in cookie files * Skip malformed cookie file entries instead of crashing (invalid entry len, invalid expires at)
2020-03-10[utils] Add reference to cookie file formatSergey M․
2020-03-10Revert "[utils] Add support for cookies with spaces used instead of tabs"Sergey M․
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.
2020-03-08[utils] Add support for cookies with spaces used instead of tabsSergey M․
2020-02-29[YoutubeDL] Force redirect URL to unicode on python 2Sergey M․
2019-12-15[utils] Improve str_to_intSergey M․
2019-11-29[utils] handle int values passed to str_to_intRemita Amine
2019-11-27[utils] Add generic caesar cipher and rot47Sergey M․
2019-11-27[utils] Handle rd-suffixed day parts in unified_strdate (#23199)InfernalUnderling
2019-10-29[utils] Actualize major IPv4 address blocks per countrySergey M․
2019-10-18[utils] Improve subtitles_filename (closes #22753)Sergey M․
2019-06-29[utils] Introduce random_user_agent and use as default User-Agent (closes ↵Sergey M․
#21546)
2019-06-14[utils] Restrict parse_codecs and add theora as known vcodec (#21381)Sergey M․
2019-05-24[utils] Improve strip_or_noneSergey M․
2019-05-11Fix W504 and disable W503 (closes #20863)Sergey M․
2019-05-11[utils] Transliterate "þ" as "th" (#20897)Jakub Wilk
Despite visual similarity "þ" is unrelated to "p". It is normally transliterated as "th": $ echo þ-Þ | iconv -t ASCII//TRANSLIT th-TH
2019-03-23[utils] Improve int_or_none and float_or_none (#20403)Sergey M․
2019-03-17[utils] Introduce parse_bitrateSergey M․
2019-03-11Start moving to ytdl-orgSergey M․
2019-03-03[utils] strip #HttpOnly_ prefix from cookies files (#20219)remitamine
2019-02-08[malltv] Add extractor (closes #18058)Ales Jirasek
2019-01-20[utils] Fix urljoin for paths with non-http(s) schemesSergey M․
2019-01-07[utils] Fix typoSergey M․
2019-01-07[utils] Add language codes replaced in 1989 revision of ISO 639 to ↵Sergey M․
ISO639Utils (closes #18765)
2018-12-09[YoutubeDL] Introduce YoutubeDLCookieJar and clarify the rationale behind ↵Sergey M․
session cookies (closes #12929)
2018-12-02[utils] Fix random_birthday to generate existing dates onlyAlexander Seiler
2018-09-10[utils] Properly recognize AV1 codec (closes #17506)Sergey M․
2018-08-29[utils] Improve remote address skipping and add support for python 2.6 ↵Sergey M․
(closes #17362)
2018-08-29[utils] Skip remote IP addresses non matching to source address' IP version ↵Andrew Udvare
(closes #13422)
2018-08-14[utils] Use pure browser header for User-Agent (closes #17236)Sergey M․
2018-07-29[utils] Remove return from __init__Huyuumi
2018-07-21[utils] Introduce url_or_noneSergey M․
2018-07-21[utils] Allow JSONP with empty func name (closes #17028)Sergey M․
2018-07-09[utils] Share JSON-LD regexSergey M․
2018-06-02[openload] Improve ext extractionEnes
2018-05-26[utils] fix style id extraction for namespaced id attribute(closes #16551)Remita Amine
2018-05-25[utils] keep the original TV_PARENTAL_GUIDELINES dictRemita Amine
2018-05-23[utils] Relax TV Parental Guidelines matchingRemita Amine
2018-05-02Improve geo bypass mechanismSergey M․
* Introduce geo bypass context * Add ability to bypass based on IP blocks in CIDR notation * Introduce --geo-bypass-ip-block
2018-04-28[utils] Introduce merge_dictsSergey M․
2018-04-24[utils] Fix match_str for boolean meta fieldsSergey M․
2018-03-14[tennistv] Add support for tennistv.comPhilipp Hagemeister
2018-03-02[utils] Add parse_resolutionSergey M․
2018-02-19[utils] Fixup some common URL's typos in sanitize_url (closes #15649)Sergey M․
2018-02-19[cbc] add new extractor for olympics.cbc.ca(closes #15535)Remita Amine