diff options
author | pukkandan <pukkandan@gmail.com> | 2021-01-24 19:10:02 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2021-01-24 20:24:07 +0530 |
commit | f74980cbaebaf3c4ea89d1b257424a50545991d9 (patch) | |
tree | 896c00839bf145432303e745e21dd7ad6935b938 /ytdlp_plugins/extractor/sample.py | |
parent | c571435f9c22129c3663b738ca7b577ee05eec97 (diff) | |
download | hypervideo-pre-f74980cbaebaf3c4ea89d1b257424a50545991d9.tar.lz hypervideo-pre-f74980cbaebaf3c4ea89d1b257424a50545991d9.tar.xz hypervideo-pre-f74980cbaebaf3c4ea89d1b257424a50545991d9.zip |
Plugin support
Extractor plugins are loaded from <root-dir>/ytdlp_plugins/extractor/__init__.py
Inspired by https://github.com/un-def/dl-plus
:ci skip dl
Diffstat (limited to 'ytdlp_plugins/extractor/sample.py')
-rw-r--r-- | ytdlp_plugins/extractor/sample.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ytdlp_plugins/extractor/sample.py b/ytdlp_plugins/extractor/sample.py new file mode 100644 index 000000000..41954b6be --- /dev/null +++ b/ytdlp_plugins/extractor/sample.py @@ -0,0 +1,12 @@ +from __future__ import unicode_literals + +from youtube_dlc.extractor.common import InfoExtractor + + +class SamplePluginIE(InfoExtractor): + _WORKING = False + IE_DESC = False + _VALID_URL = r'^sampleplugin:' + + def _real_extract(self, url): + self.to_screen('URL "%s" sucessfully captured' % url) |