Commit Graph

1219 Commits (b38d4c941d1993ab27e4c0f8e024e23c2ec0f8f8)

Author SHA1 Message Date
Matt Broadway b38d4c941d
[cookies] Update for chromium changes ()
Authored by: mbway
coletdjnz daafbf49b3
[core] Support decoding multiple content encodings ()
Authored by: coletdjnz
coletdjnz b87e01c123
[cookies] Move `YoutubeDLCookieJar` to cookies module ()
Authored by: coletdjnz
coletdjnz 08916a49c7
[core] Improve HTTP redirect handling ()
Aligns HTTP redirect handling with what browsers commonly do and RFC standards. 

Fixes issues afac4caa7d missed.

Authored by: coletdjnz
pukkandan 7aeda6cc9e
[jsinterp] Do not compile regex
pukkandan 4823ec9f46
Update to ytdl-commit-d1c6c5
[YouTube] [core] Improve platform debug log, based on yt-dlp
d1c6c5c4d6

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
pukkandan 6f2287cb18
[cleanup] Misc
Closes , closes 
pukkandan 1d7656184c
[jsinterp] Handle `NaN` in bitwise operators
Closes 
Simon Sawicki b079c26f0a
[utils] `traverse_obj`: More fixes ()
- Fix result when branching with `traverse_string`
- Fix `slice` path on `dict`s
- Fix tests and docstrings from 21b5ec86c2
- Add `is_iterable_like` helper function

Authored by: Grub4K
pukkandan 7cf51f2191
[jsinterp] Handle negative numbers better
Closes 
Simon Sawicki 21b5ec86c2
[utils] `traverse_obj`: Allow iterables in traversal ()
Authored by: Grub4K
pukkandan ec9311c41b
[outtmpl] Support `str.format` syntax inside replacements
Closes 
pukkandan 78fde6e339
[outtmpl] Allow `\n` in replacements and default.
Fixes: https://github.com/yt-dlp/yt-dlp/issues/6808#issuecomment-1510055357
Fixes: https://github.com/yt-dlp/yt-dlp/issues/6808#issuecomment-1510363645
Simon Sawicki 0898c5c8cc
[utils] `js_to_json`: Implement template strings ()
Authored by: Grub4K
pukkandan f68434cc74
[extractor] Extract more metadata from ISM
Fixes 81b6102d20 (r105892531)
pukkandan 9acf1ee25f
[jsinterp] Handle `Date` at epoch 0
Closes 
pukkandan 65f6e80780
[dependencies] Simplify `Cryptodome`
Closes , closes , closes 
pukkandan 45b2ee6f4f
Update to ytdl-commit-2dd6c6e
[YouTube] Avoid crash if uploader_id extraction fails
2dd6c6edd8

Except:
    * 295736c9cba714fb5de7d1c3dd31d86e50091cf8 [jsinterp] Improve parsing
    * 384f632e8a9b61e864a26678d85b2b39933b9bae [ITV] Overhaul ITV extractor
    * 33db85c571304bbd6863e3407ad8d08764c9e53b [feat]: Add support to external downloader aria2p
Simon Sawicki 6839ae1f6d
[utils] `traverse_obj`: Fix more bugs
and cleanup uses of `default=[]`

Continued from b1bde57bef
Simon Sawicki b1bde57bef
[utils] `traverse_obj`: Fix several behavioral problems
See  for further info

Authored by: Grub4K
pukkandan f6a765ceb5
[dependencies] Standardize `Cryptodome` imports
Simon Sawicki 776995bc10
[utils] `traverse_obj`: Various improvements
- Add `set` key for transformations/filters
- Add `re.Match` group names
- Fix behavior for `expected_type` with `dict` key
- Raise for filter function signature mismatch in debug

Authored by: Grub4K
pukkandan 8b008d6254
[jsinterp] Support `if` statements
Closes 
Simon Sawicki 773c272d66
Fix config locations ()
Bug in 8e40b9d1ec
Closes 

Authored by: Grub4k, coletdjnz, pukkandan
Matthew 8e40b9d1ec
Improve plugin architecture ()
to make plugins easier to develop and use:
* Plugins are now loaded as namespace packages.
* Plugins can be loaded in any distribution of yt-dlp (binary, pip, source, etc.).
* Plugin packages can be installed and managed via pip, or dropped into any of the documented locations.
* Users do not need to edit any code files to install plugins.
* Backwards-compatible with previous plugin architecture.

As a side-effect, yt-dlp will now search in a few more locations for config files.

Closes https://github.com/yt-dlp/yt-dlp/issues/1389

Authored by: flashdagger, coletdjnz, pukkandan, Grub4K
Co-authored-by: Marcel <flashdagger@googlemail.com>
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
Co-authored-by: Simon Sawicki <accounts@grub4k.xyz>
pukkandan fbb7383306
Add `weba` to known extensions
ChillingPepper d5f043d127
[utils] js_to_json: Fix bug in f55523c ()
Authored by: ChillingPepper, pukkandan
pukkandan 9f14daf22b
[extractor] Deprecate `_sort_formats`
pukkandan 6368e2e639
[cleanup] Misc
Closes 
Robert Geislinger 7aaf4cd2a8
[cleanup] Misc
Closes , Closes 

Authored by: pukkandan, Alienmaster
pukkandan 495322b95b
[test] Allow `extract_flat` in download tests
Authored by: coletdjnz, pukkandan
Matthew 86973308cd
[extractor/youtube:tab] Update tab handling for redesign ()
Closes , , 
Authored by: coletdjnz, pukkandan
pukkandan 46d09f8707
[cleanup] Lint and misc cleanup
pukkandan db4678e448
Update to ytdl-commit-de39d128
[extractor/ceskatelevize] Back-port extractor from yt-dlp
de39d1281c

Closes , Closes , Closes 
Alex Karabanov c9bd65185c
[extractor/zenyandex] Fix extractors (, )
Closes 
Authored by:  lksj, puc9, pukkandan

Co-authored-by: puc9 <51006296+puc9@users.noreply.github.com>
Ajay Ramachandran 63c547d71c
[SponsorBlock] Support `chapter` category ()
Authored by: ajayyy, pukkandan
Simon Sawicki a71b812f53
[utils] `js_to_json`: Improve escape handling ()
Authored by: Grub4K
Simon Sawicki 36069409ec
[cookies] Improve `LenientSimpleCookie` ()
Closes  
Authored by: Grub4K
pukkandan 0468a3b325
[jsinterp] Improve separating regex
Fixes https://github.com/yt-dlp/yt-dlp/issues/4635#issuecomment-1273974909
Matthew 4c9a1a3ba5
[extractor/wordpress:mb.miniAudioPlayer] Add embed extractor ()
Closes https://github.com/yt-dlp/yt-dlp/issues/4994

Authored by: coletdjnz
Simon Sawicki 7b0127e1e1
[utils] `traverse_obj`: Allow `re.Match` objects ()
Authored by: Grub4K
Simon Sawicki f99bbfc983
[utils] `traverse_obj`: Always return list when branching ()
Fixes 
Authored by: Grub4K
nixxo 81b6102d20
[downloader/ism] Support ec-3 codec ()
Closes 
Authored by: nixxo
Simon Sawicki ab029d7e92
[utils] `traverse_obj`: Rewrite, document and add tests ()
Authored by: Grub4K
Simon Sawicki 8817a80d3a
[cookies] Parse cookies leniently ()
Closes , 
Authored by: Grub4K
Elyse 7657ec7ed6
[utils] `base_url`: URL paths can contain `&` ()
Authored by: elyse0
Closes 
pukkandan 07a1250e0e
[outtmpl] Curly braces to filter keys
pukkandan 1a7c9fad9f
[jsinterp] Workaround operator associativity issue
https://github.com/yt-dlp/yt-dlp/issues/4635#issuecomment-1235384480
pukkandan d2c8aadf79
[cleanup] Misc
Closes , Closes , Closes 
Authored by: pukkandan, MrRawes, DavidH-2022
pukkandan 1ac7f46184
Update to ytdl-commit-ed5c44e7
[compat] Replace deficient ChainMap class in Py3.3 and earlier
ed5c44e7b7