mirror of https://github.com/yt-dlp/yt-dlp
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 dlpull/31/head
parent
c571435f9c
commit
f74980cbae
@ -1 +1 @@
|
|||||||
py -m PyInstaller youtube_dlc\__main__.py --onefile --name youtube-dlc --version-file win\ver.txt --icon win\icon\cloud.ico --upx-exclude=vcruntime140.dll
|
py -m PyInstaller youtube_dlc\__main__.py --onefile --name youtube-dlc --version-file win\ver.txt --icon win\icon\cloud.ico --upx-exclude=vcruntime140.dll --exclude-module ytdlp_plugins
|
@ -0,0 +1,2 @@
|
|||||||
|
# flake8: noqa
|
||||||
|
from .sample import SamplePluginIE
|
@ -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)
|
Loading…
Reference in New Issue