Simon Sawicki
b079c26f0a
[utils] traverse_obj
: More fixes ( #6959 )
...
- 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
2023-04-30 19:50:22 +02:00
pukkandan
7cf51f2191
[jsinterp] Handle negative numbers better
...
Closes #6131
2023-04-27 07:52:09 +05:30
Simon Sawicki
21b5ec86c2
[utils] traverse_obj
: Allow iterables in traversal ( #6902 )
...
Authored by: Grub4K
2023-04-24 19:56:35 +02:00
pukkandan
ec9311c41b
[outtmpl] Support str.format
syntax inside replacements
...
Closes #6843
2023-04-24 18:43:54 +05:30
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
2023-04-24 18:28:30 +05:30
Simon Sawicki
0898c5c8cc
[utils] js_to_json
: Implement template strings ( #6623 )
...
Authored by: Grub4K
2023-03-25 19:41:28 +01:00
pukkandan
f68434cc74
[extractor] Extract more metadata from ISM
...
Fixes 81b6102d20 (r105892531)
2023-03-25 13:18:21 +05:30
pukkandan
9acf1ee25f
[jsinterp] Handle Date
at epoch 0
...
Closes #6400
2023-03-03 16:55:06 +05:30
pukkandan
65f6e80780
[dependencies] Simplify Cryptodome
...
Closes #6292 , closes #6272 , closes #6338
2023-02-28 23:15:13 +05:30
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
2023-02-17 17:52:23 +05:30
Simon Sawicki
6839ae1f6d
[utils] traverse_obj
: Fix more bugs
...
and cleanup uses of `default=[]`
Continued from b1bde57bef
2023-02-10 19:36:55 +05:30
Simon Sawicki
b1bde57bef
[utils] traverse_obj
: Fix several behavioral problems
...
See #6180 for further info
Authored by: Grub4K
2023-02-08 04:11:08 +01:00
pukkandan
f6a765ceb5
[dependencies] Standardize Cryptodome
imports
2023-02-08 07:28:46 +05:30
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
2023-02-02 06:40:19 +01:00
pukkandan
8b008d6254
[jsinterp] Support if
statements
...
Closes #6131
2023-02-01 09:40:16 +05:30
Simon Sawicki
773c272d66
Fix config locations ( #5933 )
...
Bug in 8e40b9d1ec
Closes #5953
Authored by: Grub4k, coletdjnz, pukkandan
2023-01-07 00:31:00 +05:30
Matthew
8e40b9d1ec
Improve plugin architecture ( #5553 )
...
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>
2023-01-01 04:29:22 +00:00
pukkandan
fbb7383306
Add weba
to known extensions
2022-12-30 15:32:47 +05:30
ChillingPepper
d5f043d127
[utils] js_to_json: Fix bug in f55523c
( #5771 )
...
Authored by: ChillingPepper, pukkandan
2022-12-30 12:08:38 +05:30
pukkandan
9f14daf22b
[extractor] Deprecate _sort_formats
2022-11-17 11:40:17 +05:30
pukkandan
6368e2e639
[cleanup] Misc
...
Closes #5541
2022-11-16 06:57:07 +05:30
Robert Geislinger
7aaf4cd2a8
[cleanup] Misc
...
Closes #5471 , Closes #5312
Authored by: pukkandan, Alienmaster
2022-11-11 15:48:29 +05:30
pukkandan
495322b95b
[test] Allow extract_flat
in download tests
...
Authored by: coletdjnz, pukkandan
2022-11-10 07:32:35 +05:30
Matthew
86973308cd
[extractor/youtube:tab] Update tab handling for redesign ( #5439 )
...
Closes #5432 , #5430 , #5419
Authored by: coletdjnz, pukkandan
2022-11-09 14:28:44 +05:30
pukkandan
46d09f8707
[cleanup] Lint and misc cleanup
2022-11-07 02:32:36 +05:30
pukkandan
db4678e448
Update to ytdl-commit-de39d128
...
[extractor/ceskatelevize] Back-port extractor from yt-dlp
de39d1281c
Closes #5361 , Closes #4634 , Closes #5210
2022-11-07 02:18:30 +05:30
Alex Karabanov
c9bd65185c
[extractor/zenyandex] Fix extractors ( #3750 , #5268 )
...
Closes #3736
Authored by: lksj, puc9, pukkandan
Co-authored-by: puc9 <51006296+puc9@users.noreply.github.com>
2022-10-25 15:50:48 +05:30
Ajay Ramachandran
63c547d71c
[SponsorBlock] Support chapter
category ( #5260 )
...
Authored by: ajayyy, pukkandan
2022-10-18 22:21:57 +05:30
Simon Sawicki
a71b812f53
[utils] js_to_json
: Improve escape handling ( #5217 )
...
Authored by: Grub4K
2022-10-13 01:52:17 +05:30
Simon Sawicki
36069409ec
[cookies] Improve LenientSimpleCookie
( #5195 )
...
Closes #5186
Authored by: Grub4K
2022-10-11 09:09:12 +05:30
pukkandan
0468a3b325
[jsinterp] Improve separating regex
...
Fixes https://github.com/yt-dlp/yt-dlp/issues/4635#issuecomment-1273974909
2022-10-11 08:02:26 +05:30
Matthew
4c9a1a3ba5
[extractor/wordpress:mb.miniAudioPlayer] Add embed extractor ( #5087 )
...
Closes https://github.com/yt-dlp/yt-dlp/issues/4994
Authored by: coletdjnz
2022-10-09 05:55:26 +00:00
Simon Sawicki
7b0127e1e1
[utils] traverse_obj
: Allow re.Match
objects ( #5174 )
...
Authored by: Grub4K
2022-10-09 07:01:37 +05:30
Simon Sawicki
f99bbfc983
[utils] traverse_obj
: Always return list when branching ( #5170 )
...
Fixes #5162
Authored by: Grub4K
2022-10-09 06:57:32 +05:30
nixxo
81b6102d20
[downloader/ism] Support ec-3 codec ( #5004 )
...
Closes #296
Authored by: nixxo
2022-09-30 23:03:29 +05:30
Simon Sawicki
ab029d7e92
[utils] traverse_obj
: Rewrite, document and add tests ( #5024 )
...
Authored by: Grub4K
2022-09-26 02:33:19 +05:30
Simon Sawicki
8817a80d3a
[cookies] Parse cookies leniently ( #4780 )
...
Closes #4776 , #3778
Authored by: Grub4K
2022-09-16 22:32:00 +05:30
Elyse
7657ec7ed6
[utils] base_url
: URL paths can contain &
( #4841 )
...
Authored by: elyse0
Closes #4187
2022-09-04 08:39:45 +05:30
pukkandan
07a1250e0e
[outtmpl] Curly braces to filter keys
2022-09-03 18:28:24 +05:30
pukkandan
1a7c9fad9f
[jsinterp] Workaround operator associativity issue
...
https://github.com/yt-dlp/yt-dlp/issues/4635#issuecomment-1235384480
2022-09-02 20:45:55 +05:30
pukkandan
d2c8aadf79
[cleanup] Misc
...
Closes #4710 , Closes #4754 , Closes #4723
Authored by: pukkandan, MrRawes, DavidH-2022
2022-09-01 16:49:03 +05:30
pukkandan
1ac7f46184
Update to ytdl-commit-ed5c44e7
...
[compat] Replace deficient ChainMap class in Py3.3 and earlier
ed5c44e7b7
2022-09-01 16:46:32 +05:30
pukkandan
05deb747bb
[jsinterp] Fix escape in regex
2022-09-01 16:46:32 +05:30
Elyse
f26af78a8a
[jsinterp] Add charcodeAt
and bitwise overflow ( #4706 )
...
Authored by: elyse0
2022-08-31 21:01:22 +05:30
pukkandan
d81ba7d491
[jsinterp, extractor/youtube] Minor fixes
2022-08-30 18:13:37 +05:30
pukkandan
c4b2df872d
[jsinterp] Fix _separate
...
Ref: https://github.com/yt-dlp/yt-dlp/issues/4635#issuecomment-1231126941
2022-08-30 16:06:40 +05:30
pukkandan
164b03c486
[jsinterp] Fix bug in operator precedence
...
Fixes https://github.com/yt-dlp/yt-dlp/issues/4635#issuecomment-1226659543
2022-08-25 09:40:46 +05:30
pukkandan
e5458d1d88
Fix lazy extractor bug in fe7866d0ed
...
and add test
Fixes https://github.com/yt-dlp/yt-dlp/pull/3234#issuecomment-1225347071
2022-08-24 15:19:58 +05:30
pukkandan
90a1df305b
[test] Fix test_youtube_signature
2022-08-21 00:51:03 +05:30
pukkandan
be13a6e525
[jsinterp] Bring on-par with youtube-dl
...
Code from: https://github.com/ytdl-org/youtube-dl/pull/31175 , https://github.com/ytdl-org/youtube-dl/pull/31182
Authored by pukkandan, dirkf
2022-08-19 05:08:21 +05:30