Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


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


You live in the future




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: