Install and execute "youtube-dl" in container n8n

Hello,
I am running n8n in Docker, the commands will run on the n8n container and not the Docker host.
So how can I run for example “youtube-dl” with n8n ?
The workflow I wanna do is : share a link to Telegram trigger, download with “youtube-dl” the video and then put it in Jellyfin, the Media System.

Thanks

Welcome to the community @tiger360!

The best would be to create a custom n8n docker image that includes “youtube-dl”. You can find an example how something like that can be done here:

2 Likes