☻☻☻
Pipeing youtube-dl output to a given player (and having it as a mini-script)
Code:
youtube-dl -f ${2:-5} $1 -q -o - | mpv -
The first parameter is the youtube url, for a single video, and the second, optional, the quality code, like "best", "worst", or a given number. The default there (5) is the 240p flv.
Just "mpv youtube-URL" was supposed to work, but isn't working right now for me. It says the youtube-dl version is old,...