aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/utils/_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* update from upstreamJesus2023-09-041-7/+11
|
* [networking] Remove dot segments during URL normalization (#7662)coletdjnz2023-07-281-17/+0
| | | | | | | This implements RFC3986 5.2.4 remove_dot_segments during the URL normalization process. Closes #3355, #6526 Authored by: coletdjnz
* [utils] Improve `parse_duration`bashonly2023-07-201-1/+1
| | | | Authored by: bashonly
* [compat, networking] Deprecate old functions (#2861)coletdjnz2023-07-151-45/+2
| | | | Authored by: coletdjnz, pukkandan
* [networking] Rewrite architecture (#2861)coletdjnz2023-07-151-34/+1
| | | | | | | | | | | | | | | | New networking interface consists of a `RequestDirector` that directs each `Request` to appropriate `RequestHandler` and returns the `Response` or raises `RequestError`. The handlers define adapters to transform its internal Request/Response/Errors to our interfaces. User-facing changes: - Fix issues with per request proxies on redirects for urllib - Support for `ALL_PROXY` environment variable for proxy setting - Support for `socks5h` proxy - Closes https://github.com/yt-dlp/yt-dlp/issues/6325, https://github.com/ytdl-org/youtube-dl/issues/22618, https://github.com/ytdl-org/youtube-dl/pull/28093 - Raise error when using `https` proxy instead of silently converting it to `http` Authored by: coletdjnz
* [networking] Add module (#2861)pukkandan2023-07-151-466/+13
| | | | No actual changes - code is only moved around
* [utils] Add temporary shim for loggingpukkandan2023-07-151-0/+30
| | | | Related: #5680, #7517
* [utils] `clean_podcast_url`: Handle more trackers (#7556)Mahmoud Abdel-Fattah2023-07-111-3/+7
| | | | Authored by: mabdelfattah, bashonly Closes #7544
* [core] Prevent `Cookie` leaks on HTTP redirectcoletdjnz2023-07-061-2/+7
| | | | | | Ref: https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-v8mc-9377-rwjj Authored by: coletdjnz
* [utils] clean_podcast_url: Handle protocol in redirect URLpukkandan2023-06-261-1/+2
| | | | Closes #7430
* Bugfix for b4e0d75848e9447cee2cd3646ce54d4744a7ff56pukkandan2023-06-221-4/+4
|
* [cleanup] Miscpukkandan2023-06-221-3/+4
|
* Improve `--download-sections`pukkandan2023-06-221-4/+18
| | | | | | | * Support negative time-ranges * Add `*from-url` to obey time-ranges in URL Closes #7248
* [cleanup] Miscpukkandan2023-06-211-8/+2
| | | | | Closes #6288, Closes #7197, Closes #7265, Closes #7353, Closes #5773 Authored by: mikf, freezboltz, pukkandan
* Add option `--netrc-cmd` (#6682)Nicolai Dagestad2023-06-211-0/+8
| | | | Authored by: NDagestad, pukkandan Closes #1706
* [outtmpl] Fix some minor bugspukkandan2023-06-211-1/+1
| | | | Closes #7164
* [utils] `strftime_or_none`: Handle negative timestampspukkandan2023-06-211-1/+4
| | | | | Closes #6706 Authored by pukkandan, dirkf
* [utils] `FormatSorter`: Improve `size` and `br`pukkandan2023-06-211-10/+15
| | | | | | | | | | | | Closes #1596 Previously, when some formats have accurate size and some approximate, the ones with accurate size was always prioritized For formats with known tbr and unknown vbr/abr, we were setting (vbr=tbr, abr=0) for sorting to work. This is no longer needed. Authored by pukkandan, u-spec-png
* [extractor/urplay] Extract all subtitles (#7309)hoaluvn2023-06-141-0/+1
| | | Authored by: hoaluvn
* [extractor/camfm] Add extractors (#7083)garret2023-05-291-0/+1
| | | Authored by: garret1317
* [core] Support decoding multiple content encodings (#7142)coletdjnz2023-05-271-29/+32
| | | Authored by: coletdjnz
* [cookies] Move `YoutubeDLCookieJar` to cookies module (#7091)coletdjnz2023-05-271-130/+0
| | | Authored by: coletdjnz
* [core] Improve HTTP redirect handling (#7094)coletdjnz2023-05-271-38/+21
| | | | | | | Aligns HTTP redirect handling with what browsers commonly do and RFC standards. Fixes issues https://github.com/yt-dlp/yt-dlp/commit/afac4caa7db30804bebac33e53c3cb0237958224 missed. Authored by: coletdjnz
* Update to ytdl-commit-d1c6c5pukkandan2023-05-241-2/+10
| | | | | | | | | | | [YouTube] [core] Improve platform debug log, based on yt-dlp https://github.com/ytdl-org/youtube-dl/commit/d1c6c5c4d618fa950813c0c71aede34a5ac851e9 Except: * 6ed34338285f722d0da312ce0af3a15a077a3e2a [jsinterp] Add short-cut evaluation for common expression * There was no performance improvement when tested with https://github.com/ytdl-org/youtube-dl/issues/30641 * e8de54bce50f6f77a4d7e8e80675f7003d5bf630 [core] Handle `/../` sequences in HTTP URLs * We plan to implement this differently
* [devscripts/cli_to_api] Add scriptpukkandan2023-05-241-2/+4
|
* [core] Deprecate internal `Youtubedl-no-compression` header (#6876)coletdjnz2023-05-201-17/+6
| | | Authored by: coletdjnz
* [cleanup, utils] Split into submodules (#7090)coletdjnz2023-05-201-0/+6104
Closes https://github.com/yt-dlp/yt-dlp/pull/2173 Authored by: pukkandan, coletdjnz Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>