Closed demon071 closed 1 year ago
Sure. But please be more specific. Also give an example how you are using yt-dlp.
i'm trying to add the plugin to yt-dlp, but it seems to only be able to run the plugin when it's in the same directory as the source code. When I install yt-dlp from pip and create ytdlp_plugin folder in my project folder but it doesn't work
So you have project folder with your source code.
Do you want to
A) use an existing plugin installed with pip in embedded yt-dlp code
or
B) develop your own plugin under ytdlp_plugins/extractor/<plugin>.py
Please be as specific as possible by describing your expectation.
I want use an existing plugin installed with pip in embedded yt-dlp code
Try this:
import ytdlp_plugins
from yt_dlp import YoutubeDL
# add found plugin extractors to yt-dlp
ytdlp_plugins.initialize()
ytdlp_plugins.add_plugins()
with YoutubeDL() as ydl:
ydl.download(...)
In future releases the initialize()
won't be necessary...
Hi, I want how to use the plugin with yt-dlp, can you give me instructions?