-
Notifications
You must be signed in to change notification settings - Fork 100
[Advanced] yt‐dlp plugins
Kieran edited this page Nov 27, 2024
·
5 revisions
Warning
Plugins can change the underlying behaviour of yt-dlp that Pinchflat relies on. There is no guarantee that Pinchflat will work with plugins installed, nor will any support be provided in troubleshooting or adding compatibility for plugins
For those who might want to install yt-dlp plugins, you have two ways you can do it:
- Map a new path from your host's Pinchflat config directory to
/etc/yt-dlp/pluginsin your container- I would mount it to a new directory in the
extrasdirectory. Something like -v/appdata/pinchflat/extras/yt-dlp-plugins:/etc/yt-dlp/plugins
- I would mount it to a new directory in the
- Download your plugin of choice, unzip it, and place it in the directory on your host that you referenced in step 1
- That's it! You can open a console into the Pinchflat container and run
yt-dlp --verboseto confirm - look for theExtractor Pluginsline - If it's not working, ensure you've read yt-dlp's documentation on installing plugins
- Familiarize yourself with the custom lifecycle scripts documentation
- Create a script to download and unzip your plugin of choice into the container's
/etc/yt-dlp/pluginsdirectory on theapp_initevent- This is left as an exercise to the reader, but if anyone gets this set up then please leave a comment on #465 and I'll put it as an example here
- The containers have
curlandzip/unzipavailable but notgitdue to its impact on final bundle size
- Restart the Pinchflat container. That's it! You can open a console into the Pinchflat container and run
yt-dlp --verboseto confirm - look for theExtractor Pluginsline. Keep in mind that a failure in your script likely won't prevent the app from booting so keep an eye on your logs for error messages. - If it's not working, ensure you've read yt-dlp's documentation on installing plugins