Download videos with ytdl from an invidious playlist for antennapod

upliftedduck@feddit.nl to Selfhosted@lemmy.world – 9 points –

Hi, looking for a way to automatically download audio files with ytdl whenever i add a video to a specific invidious playlist. Hope this makes sense :)

So, basically, i add a video to an invidious playlist, which then triggers ytdl to download that video as an audiofile to a disk on my server. Then i sync that file with syncthing to my phone, so that my antennapod can load the file as podcast. Or am i complicating things??

3

If you keep the same filenames for the video files it should not redownload what already has.

For automatically I think is honestly easier to just run the command on a cronjob every 5 mins.

It's not implemented yet, but tubearchivist https://github.com/tubearchivist/tubearchivist has a podcast mode on their roadmap which I've been keeping an eye on.

great, looks promising, i'll keep an eye on it as well! Problem for me seems to be invidious not creating a valid rss feed for playlists. I managed to setup yt-dl to watch a youtube playlist (these are valid), but not for invidious.

my plan was: add video to invidious playlist > trigger ytdl to download video from the watched playlist > sync video to phone > add directory to antennapod.