←back to thread

200 points Larrikin | 1 comments | | HN request time: 0s | source
Show context
haunter ◴[] No.43666855[source]
I'm backing up my Youtube favorites locally since 2018, so far 10k videos. I might try to use this because seems like would be a fun way to play them in the background on a second monitor.
replies(3): >>43667091 #>>43670114 #>>43674067 #
VTimofeenko ◴[] No.43667091[source]
I've been thinking about doing this. What's your setup?
replies(3): >>43667589 #>>43667635 #>>43667760 #
madphilosopher ◴[] No.43667589[source]
Not the OP, but I have a Postfix mail server running on my home media box that receives YouTube URLs sent to its special email address. Postfix passes the message to a Python script that parses out the URL and places it into a Redis queue. A second Python program, running as a daemon, watches the queue and then downloads the video using yt-dlp. I can also enqueue video URLs from the command line.

This is the command that the daemon runs to request 720p, for example:

    command = 'yt-dlp --write-info-json -f "bv*[height<=720]+ba" --output "out.%%(ext)s" --merge-output-format mp4 "%s"' % url
replies(2): >>43667649 #>>43668365 #
1. darkwater ◴[] No.43668365[source]
Sounds like how RMS browses the web. Nice setup, by the way.