diff options
author | Matthew <coletdjnz@protonmail.com> | 2023-01-01 04:29:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-01 04:29:22 +0000 |
commit | 8e40b9d1ec132ae1bcac50b3ee520ece46ac9c55 (patch) | |
tree | 910f1b931be45b9293dc763d9f46c33f7159c199 /ytdlp_plugins/extractor/sample.py | |
parent | 2fb0f858686c46abc50a0e253245afe750746775 (diff) | |
download | hypervideo-pre-8e40b9d1ec132ae1bcac50b3ee520ece46ac9c55.tar.lz hypervideo-pre-8e40b9d1ec132ae1bcac50b3ee520ece46ac9c55.tar.xz hypervideo-pre-8e40b9d1ec132ae1bcac50b3ee520ece46ac9c55.zip |
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>
Diffstat (limited to 'ytdlp_plugins/extractor/sample.py')
-rw-r--r-- | ytdlp_plugins/extractor/sample.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/ytdlp_plugins/extractor/sample.py b/ytdlp_plugins/extractor/sample.py deleted file mode 100644 index a8bc455eb..000000000 --- a/ytdlp_plugins/extractor/sample.py +++ /dev/null @@ -1,14 +0,0 @@ -# â Don't use relative imports -from yt_dlp.extractor.common import InfoExtractor - - -# âšī¸ Instructions on making extractors can be found at: -# đ https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#adding-support-for-a-new-site - -class SamplePluginIE(InfoExtractor): - _WORKING = False - IE_DESC = False - _VALID_URL = r'^sampleplugin:' - - def _real_extract(self, url): - self.to_screen('URL "%s" successfully captured' % url) |