-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(plugin): yt-dlp integration #2480
base: main
Are you sure you want to change the base?
Conversation
i love this plugin idea! however based on a quick skim of the code, the current implementation is very questionable. why is ytdlp stored in indexeddb? you need it on the native side, not in the browser i honestly don't think the plugin should download it for you. why not simply test if it's available and if not show the user a popup with instructions how to install it? installing programs from a plugin is not something I want to do and it might trip anti malware engines, not to mention that it also just seems a little sussy. and on Linux this should really be handled via package manager anyway we could just have the user install python themselves and then use pip to install it if it's missing |
Nice catch, weird that it's interrupting though, I thought I had error handling everywhere. I'll have to take a look at that.
Good point, should probably add a check.
I wanted to store it somewhere and wasn't sure where else to do it..
Yeah that's fair enough. I wanted to make it completely seamless, but halfway through I realised that doing the same to download ffmpeg would be a pain in the ass, so now it's in a bit of a weird state where half of the dependencies auto-install. This definitely makes more sense.
I'm not sure that would add it to |
anything installed via pip should be in path. when you install python on windows there's an option to add python stuff to the PATH, you need to make sure to have it checked in any case, you could just do |
not sure why i did that to begin with tbh
Also, does this work on the web version?; if not, id mark it as such. |
lemme make you think about it for 1 second - if it has to download yt-dlp/ffmpeg locally, run child_process... |
that was my point lol |
How do I mark it as desktop only? I think I've seen a plugin or two using the |
rename the folder to pluginname.desktop im pretty sure |
… and ffmpeg custom args
With 8bc793c it should only build for desktop. |
This is a plugin that adds a
yt-dlp
command. You pass a url, it downloads it and readies it as an attachment. See the gif for a quick example.It supports any URL supported by https://github.com/yt-dlp/yt-dlp.
I have not yet tested this on Linux,
and I might also add support for converting directly to gifs, but feel free to experiment and find bugs.