top | item 43667589

(no title)

madphilosopher | 10 months ago

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

discuss

order

darkwater|10 months ago

Sounds like how RMS browses the web. Nice setup, by the way.

yard2010|10 months ago

You live in the future