aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/utils.py
AgeCommit message (Collapse)Author
2022-05-17Bugfix for 591bb9d3553a4d7b453777c1e28e0948741e3b50pukkandan
Closes #3769
2022-05-17Fix color in `-q -F`pukkandan
and convert `ydl._out_files`/`ydl._allow_colors` to `Namespace` Closes #3761
2022-05-17[cleanup] Misc cleanuppukkandan
2022-05-13[extractor] Use classmethod/property where possiblepukkandan
and refactor lazy extractors accordingly. This reduces the need to create extractor instances
2022-05-11Fix `--date today`pukkandan
Closes #3704
2022-05-11[cookies] Allow `cookiefile` to be a text streampukkandan
Closes #3674
2022-05-10Bugfix for 59f943cd5097e9bdbc3cb3e6b5675e43d369341apukkandan
Fixes: https://github.com/yt-dlp/yt-dlp/commit/59f943cd5097e9bdbc3cb3e6b5675e43d369341a#commitcomment-73251597
2022-05-09[cleanup] Minor fixes (See desc)pukkandan
* [youtube] Fix `--youtube-skip-dash-manifest` * [build] Use `$()` in `Makefile`. Closes #3684 * Fix bug in 385ffb467b2285e85a2a5495b90314ba1f8e0700 * Fix bug in 43d7f5a5d0c77556156a3f8caa6976d3908a1e38 * [cleanup] Remove unnecessary `utf-8` from `str.encode`/`bytes.decode` * [utils] LazyList: Expose unnecessarily "protected" attributes and other minor cleanup
2022-05-07Allow use of weaker ciphers with `--legacy-server-connect`pukkandan
Closes #2043
2022-05-02Add support for SSL client certificate authentication (#3435)coletdev
Adds `--client-certificate`, `--client-certificate-key`, `--client-certificate-password` Authored-by: coletdjnz Co-authored-by: df <fieldhouse@gmx.net> Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
2022-05-01Fix redirect HTTP method handling (#3577)coletdev
Authored by: coletdjnz
2022-05-01[utils] `locked_file`: Ignore illegal seek on `truncate` (#3610)Justin Keogh
Closes #3557 Authored by: jakeogh
2022-05-01[cleanup] Misc fixes (see desc)pukkandan
* Do not warn when fixup is skipped for existing file * [fragment] Fix `--skip-unavailable-fragments` for HTTP Errors * [utils] write_string: Fix bug in 59f943cd5097e9bdbc3cb3e6b5675e43d369341a * [utils] parse_codecs: Subtitle codec is generally referred to as `scodec`. https://github.com/yt-dlp/yt-dlp/pull/2174#discussion_r790156048 * [docs] Remove note about permissions. Closes #3597
2022-05-01[XAttrMetadata] Refactor and document dependenciespukkandan
2022-05-01[utils] YoutubeDLCookieJar: Detect and reject JSON file (#3599)Lesmiscore
Authored by: Lesmiscore
2022-04-29[cleanup] Misc fixespukkandan
Closes #3565, https://github.com/yt-dlp/yt-dlp/issues/3514#issuecomment-1105944364
2022-04-28`--match-filter -` to interactively ask for each videopukkandan
2022-04-28[utils] `write_string`: Workaround newline issue in `conhost`pukkandan
On windows `conhost`, when `WINDOWS_VT_MODE` is enabled, `\n` is not actually sent if the window is exactly the length of printed line, and the line does not end with a white-space character. So the line-break disappears when resizing the window. Fixes #1863
2022-04-26[compat/asyncio] Use `asyncio.all_tasks`pukkandan
2022-04-26Revert acbc64225006964cf52d316e007a77a1b5e2975bpukkandan
Reverts "[utils] WebSocketsWrapper: Ignore warnings at websockets instantiation" The warning should not be suppressed. We need to address it
2022-04-25[utils] WebSocketsWrapper: Ignore warnings at websockets instantiationLesmiscore
This also fixes crash caused by moving asyncio to .compat. Authored by: Lesmiscore Thanks: J.Chung at Discord (581418557871620106)
2022-04-21[dependencies] Create module with all dependency importspukkandan
2022-04-20Don't imply `-s` for later stages of `-O`pukkandan
2022-04-19bugfix for a44ca5a470e09b5170fc9c3a46733f050fadbfae, ↵pukkandan
19a0394044bfad36cd665450271b8eb048a41c02, 77f9033095cd8e1092a80db67f2b577cf13f95a8 Closes #3472
2022-04-18[cleanup] Misc cleanup and refactor (#2173)pukkandan
2022-04-15[utils] Fix WebSocketsWrapperpukkandan
Bug in 3cea3edd1ac1101bd709dfa0305509028118b163 Closes #3422
2022-04-12[utils] certifi: Make sure the pem file existspukkandan
Closes #3353
2022-04-12[cleanup] Misc cleanup (#2173)pukkandan
Authored by: fstirlitz, pukkandan
2022-04-12[cleanup] Sort importspukkandan
Using https://github.com/PyCQA/isort isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
2022-04-12[cleanup] Upgrade syntaxpukkandan
Using https://github.com/asottile/pyupgrade 1. `__future__` imports and `coding: utf-8` were removed 2. Files were rewritten with `pyupgrade --py36-plus --keep-percent-format` 3. f-strings were cherry-picked from `pyupgrade --py36-plus` Extractors are left untouched (except removing header) to avoid unnecessary merge conflicts
2022-04-12[cleanup] Mark some compat variables for removal (#2173)pukkandan
Authored by fstirlitz, pukkandan
2022-04-12[cleanup] Remove unused code paths (#2173)felix
Notes: * `_windows_write_string`: Fixed in 3.6 * https://bugs.python.org/issue1602 * PEP: https://www.python.org/dev/peps/pep-0528 * Windows UTF-8 fix: Fixed in 3.3 * https://bugs.python.org/issue13216 * `__loader__`: is always present in 3.3+ * https://bugs.python.org/issue14646 * `workaround_optparse_bug9161`: Fixed in 2.7 * https://bugs.python.org/issue9161 Authored by: fstirlitz
2022-04-10[utils] locked_file: Do not give executable bits for newly created filesLesmiscore
Authored by: Lesmiscore
2022-04-09[utils] `sanitize_path`: Fix when path is empty stringpukkandan
2022-04-07[test] Add `test_locked_file`pukkandan
2022-04-07[utils] locked_file: Fix non-blocking non-exclusive lockpukkandan
2022-04-06[utils] locked_file: Do not truncate files before locking (#2994)Justin Keogh
Authored by: jakeogh, pukkandan
2022-04-05Do not lock downloading file on Windowspukkandan
Closes #3124
2022-04-05Do not prevent download if locking is unsupportedpukkandan
Closes #3022 Failure to lock download-archive is still fatal. This is consistent with youtube-dl's behavior
2022-04-05[cleanup] Misc fixespukkandan
Closes https://github.com/yt-dlp/yt-dlp/pull/3213, Closes https://github.com/yt-dlp/yt-dlp/pull/3117 Related: https://github.com/yt-dlp/yt-dlp/issues/3146#issuecomment-1077323114, https://github.com/yt-dlp/yt-dlp/pull/3277#discussion_r841019671, https://github.com/yt-dlp/yt-dlp/commit/a825ffbffa0bea322e3ccb44c6f8e01d8d9572fb#commitcomment-68538986, https://github.com/yt-dlp/yt-dlp/issues/2360, https://github.com/yt-dlp/yt-dlp/commit/5fa3c9a88f597625296981a4a26be723e65d4842#r70393519, https://github.com/yt-dlp/yt-dlp/commit/5fa3c9a88f597625296981a4a26be723e65d4842#r70393254
2022-04-01[niconico] Fix extraction of thumbnails and uploader (#3266)Lesmiscore (Naoya Ozaki)
2022-03-31[utils] `traverse_obj`: Allow filtering by valuepukkandan
2022-03-31[utils] Add `try_call`pukkandan
2022-03-29[ffmpeg] Cache version datapukkandan
Related: https://github.com/dasl-/pifi/issues/9
2022-03-28[utils] Add `filter_dict`pukkandan
2022-03-28[youtube:tab] Fix duration extraction for shorts (#3171)coletdev
Related: https://github.com/TeamNewPipe/NewPipe/issues/8034 Authored-by: coletdjnz
2022-03-27[outtmpl] Limit changes during sanitizationpukkandan
Closes #2761
2022-03-25Ignore format-specific fields in initial pass of `--match-filter`pukkandan
Closes #3074
2022-03-25[utils] WebSocketsWrapper: Allow omitting `__enter__` invocation (#3187)Lesmiscore (Naoya Ozaki)
Authored by: Lesmiscore
2022-03-25Treat multiple `--match-filters` as ORpukkandan
Closes #3144