this post was submitted on 14 Jun 2023
24 points (100.0% liked)
Free and Open Source Software
17966 readers
4 users here now
If it's free and open source and it's also software, it can be discussed here. Subcommunity of Technology.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I use RSS to watch YouTube videos. I collect the ULRs of the videos I want to watch in a text file using my feed reader (Newsboat). In the evening a script transfers the file to my TV computer and fetches the videos with yt-dlp.
To play the videos I use another script, which plays and then trashes the video files in a loop.
Pros: no ads, no buffering videos during playback, plays videos without interaction (like TV), can collect video URLs over day, don't have to bother with YouTube's user interface, cookies etc.
I like that idea! Any chance you would be able to share the script or the general workflow?
Parent's is more complicated, but this simple script may be a good place to start. In this case, I follow a channel that posts new music videos for discovery. This automatically downloads (just the audio) using yt-dlp to a local directory. It could easily be modified to download the video (just change the -f flag). I run this with cron once a day.
https://gist.github.com/line72/ceef5402881d6d3ae732e7b7c9cbf01b
I just wrote down simplified versions of my scripts. Then I clicked the wrong button to exit the markdown preview and now it's all gone. I'll have to drink a beer now, sorry. If you have any specific questions, I'll answer them gladly.