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

    youtube-dl -f bestvideo[ext=mp4]+bestaudio[ext=m4a] -o "XBox One Story by Tony Chen.mp4" https://www.youtube.com/watch?v=U7VwtOrwceo
    start "" "XBox One Story by Tony Chen.mp4"


Just a friendly reminder to everyone, don't copy and paste commands into the terminal. There could be invisible characters that can execute unwanted operations.

Explanation/example: https://thejh.net/misc/website-terminal-copy-paste

Previous HN discussions: https://news.ycombinator.com/item?id=10554679 and https://news.ycombinator.com/item?id=5508225


FWIW, that relies on hiding input via CSS, which -- outside of a separate exploit of HN's comment sanitiser -- is not an option in a HN comment.


fish shell gets around this nicely it appears; no commands are run until you explicitly hit enter (so you see the nefarious extra hidden commands before they're ran), even with the newline chars it seems to understand you're pasting a block


You can also just do "youtube-dl U7VwtOrwceo"

No need to tell it best quality; it does that automatically.


Actually automatically it selects it wrong. If formal quality parameter is the same it chooses by bitrate, so it very often and in this case too goes for AAC audio and VP9 video, which happens just because of the properties of the codecs.


ty




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: