Commit graph

11 commits

Author SHA1 Message Date
coletdjnz
97684b0f2c
Add --no-plugins 2024-10-20 14:06:33 +13:00
coletdjnz
109c019e8a
Add public functions to add custom external plugin paths 2024-10-20 12:48:02 +13:00
coletdjnz
21e13bfa84
Decouple plugins.py from plugin types 2024-10-20 11:59:29 +13:00
coletdjnz
9269248935
add test for plugin dirs 2024-10-19 20:25:55 +13:00
coletdjnz
a19dd28fdc
revert back to init_subclass, add guard against multiple imports of same plugin 2024-10-19 19:49:08 +13:00
coletdjnz
42771dde1c
Add test for override plugins 2024-10-19 17:30:53 +13:00
coletdjnz
413ae7693b
Make globals internal-only 2024-10-19 16:25:36 +13:00
coletdjnz
3d939b68fe
Merge remote-tracking branch 'upstream/master' into misc/globals-and-plugins-revive
# Conflicts:
#	yt_dlp/YoutubeDL.py
#	yt_dlp/__init__.py
#	yt_dlp/options.py
#	yt_dlp/plugins.py
#	yt_dlp/postprocessor/__init__.py
#	yt_dlp/utils/_utils.py
2024-10-19 13:31:43 +13:00
sepro
add96eb9f8
[cleanup] Add more ruff rules (#10149)
Authored by: seproDev

Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com>
Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
2024-06-12 01:09:58 +02:00
Simon Sawicki
00709d5e9a Fix tests and add test for reloading 2023-01-17 14:54:08 +01:00
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