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

> alias download_mp3="uvx --with yt-dlp[default,curl-cffi] yt-dlp@latest --extract-audio --audio-format mp3"

If you use yt-dlp frequently, why not keep it set up in a permanent venv, with an executable on the path? That's what I do (via Pipx). Lets me use a variety of command options while reasoning about the command normally.



I would assume because the tool is updated frequently, and has a tendency to not work properly if you aren't using the latest version.


Ah, I just `pipx update yt-dlp` when that happens.




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

Search: