Commit Graph

57 Commits (9b5efaf86b99a2664fff9fc725d275f766c3221d)

Author SHA1 Message Date
Ralph Drake 85b33f5c16
[cookies] Fix `--cookies-from-browser` with macOS Firefox profiles ()
Ref: https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles#firefox:mac

Closes 
Authored by: RalphORama
bashonly dab87ca236
[cookies] Containers JSON should be opened as utf-8 ()
Closes 
Authored by: bashonly
coletdjnz 4bf912282a
[networking] Remove dot segments during URL normalization ()
This implements RFC3986 5.2.4 remove_dot_segments during the URL normalization process.

Closes , 

Authored by: coletdjnz
pukkandan 62b5c94cad
[cleanup] Misc fixes
Closes 
pukkandan 1b392f905d
[utils] Add temporary shim for logging
Related: , 
bashonly 1ceb657bdd
[fd/external] Scope cookies
- ffmpeg: Calculate cookies from cookiejar and pass with `-cookies` arg instead of `-headers`
- aria2c, curl, wget: Write cookiejar to file and use external FD built-in cookiejar support
- httpie: Calculate cookies from cookiejar instead of `http_headers`
- axel: Calculate cookies from cookiejar and disable http redirection if cookies are passed
    - May break redirects, but axel simply don't have proper cookie support

Ref: https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-v8mc-9377-rwjj

Authored by: bashonly, coletdjnz
pukkandan ad54c9130e
[cleanup] Misc
Closes , Closes , Closes , Closes , Closes 
Authored by: mikf, freezboltz, pukkandan
pukkandan 2e023649ea
[cookies] Revert compatibility breakage in b38d4c941d
Matt Broadway b38d4c941d
[cookies] Update for chromium changes ()
Authored by: mbway
Nam Vu a58182b75a
[cookies] Support custom Safari cookies path ()
Authored by: NextFire
coletdjnz b87e01c123
[cookies] Move `YoutubeDLCookieJar` to cookies module ()
Authored by: coletdjnz
Simon Sawicki 9b7a48abd1
[cookies] Defer extraction of v11 key from keyring
Closes 

Authored by: Grub4K
Simon Sawicki 36069409ec
[cookies] Improve `LenientSimpleCookie` ()
Closes  
Authored by: Grub4K
pukkandan 46a5b335e7
[cookies] Let `_get_mac_keyring_password` fail gracefully
Closes 
pukkandan 2b24afa6d7
Improve 5736d79172
Simon Sawicki 8817a80d3a
[cookies] Parse cookies leniently ()
Closes , 
Authored by: Grub4K
bashonly 22df97f9c5
Fix bug in 941e881e1f ()
Authored by: bashonly
pukkandan d2c8aadf79
[cleanup] Misc
Closes , Closes , Closes 
Authored by: pukkandan, MrRawes, DavidH-2022
bashonly 825d3ce386
[cookies] Improve container support ()
Closes 
Authored by: bashonly, pukkandan, coletdjnz
bashonly 9bd13fe5bb
[cookies] Support firefox container in `--cookies-from-browser` ()
Authored by: bashonly
pukkandan fe0918bb65
Import ctypes only when necessary
Closes 
pukkandan 14f25df2b6
[compat] Remove deprecated functions from core code
pukkandan 54007a45f1
[cleanup] Consistent style for file heads
pukkandan ac66811112
[compat] Remove more functions
Removing any more will require changes to a large number of extractors
pukkandan f0c9fb9682
[utils] `Popen`: Refactor to use contextmanager
Fixes https://github.com/yt-dlp/yt-dlp/issues/3531#issuecomment-1156223597
pukkandan 56ba69e4c9
[cleanup] Misc fixes
Closes 
Christoph Moench-Tegeder dec30912a7
[cookies] Detect profiles for cygwin/BSD ()
Closes 
Authored by: moench-tegeder
pukkandan 591bb9d355
Fix color in `-q -F`
and convert `ydl._out_files`/`ydl._allow_colors` to `Namespace`

Closes 
pukkandan 0fa7d2c8e4
Bugfix for 2414649192
pukkandan 2414649192
[cleanup] Misc cleanup
pukkandan 2e4585da92
[cookies] Throttle progress-bar
Closes 
pukkandan d76fa1f3d4
[cookies] Allow `cookiefile` to be a text stream
Closes 
pukkandan 0f06bcd759
[cleanup] Minor fixes (See desc)
* [youtube] Fix `--youtube-skip-dash-manifest`
* [build] Use `$()` in `Makefile`. Closes 
* Fix bug in 385ffb467b
* Fix bug in 43d7f5a5d0
* [cleanup] Remove unnecessary `utf-8` from `str.encode`/`bytes.decode`
* [utils] LazyList: Expose unnecessarily "protected" attributes
and other minor cleanup
pukkandan 9b8ee23b99
[dependencies] Create module with all dependency imports
pukkandan 19a0394044
[cleanup] Misc cleanup and refactor ()
pukkandan f82711587c
[cleanup] Sort imports
Using https://github.com/PyCQA/isort

    isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
pukkandan 86e5f3ed2e
[cleanup] Upgrade syntax
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
pukkandan 97ec5bc550
[cookies] Report progress when importing cookies
pukkandan a44ca5a470
[cleanup] Misc fixes
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, a825ffbffa (commitcomment-68538986), https://github.com/yt-dlp/yt-dlp/issues/2360, 5fa3c9a88f (r70393519), 5fa3c9a88f (r70393254)
Michael Pauley 1f7db8533a
[cookies] Update MacOS12 `Cookies.binarycookies` location ()
Authored by: mdpauley
pukkandan 1d3586d0d5
[aes] Add unpad_pkcs7
pukkandan fa8fd95118
[cookies] Fix keyring selection for unsupported desktops
Closes 
pukkandan 2c539d493a
[cookies] Fix bug when keyring is unspecified
Closes 
Matt Broadway f59f5ef8b6
[cookies] Support other keyrings ()
Authored by: mbway
pukkandan 0930b11fda
[docs,cleanup] Improve docs and minor cleanup
Closes , , , , , , 
pukkandan ad0090d0d2
[cookies] Local State should be opened as utf-8
Closes 
pukkandan d3c93ec2b7
Don't create console for subprocesses on Windows ()
Closes 
Matt Broadway f440b14f87
[cookies] Fix keyring fallback ()
The password returned by `security find-generic-password` has a newline at the end

Closes 
Authored by: mbway
Ákos Sülyi 09906f554d
[aes] Add `aes_gcm_decrypt_and_verify` ()
Authored by: sulyi, pukkandan
pukkandan edf65256aa
[hls,aes] Fallback to native implementation for AES-CBC
and detect `Cryptodome` in addition to `Crypto`

Closes 
Related: