this post was submitted on 05 Jan 2024
11 points (100.0% liked)

Selfhosted

40132 readers
545 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

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??

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 10 months ago (2 children)

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.

[–] [email protected] 2 points 10 months ago (1 children)

This. And, yt-dlp and/or youtube-dl used to have an issue where if the url started with the video ID instead of the playlist ID, it just downloaded the video not the whole playlist. Not sure if that is still around, then just be aware.

[–] [email protected] 2 points 10 months ago

Thanx, i will check out yt-dlp