News for hackers. Stuff that matters.
Re:YouTube to limit default video quality around the world f... by Zhyl on Wednesday March 25, 2020 @07:48AM (#22683683)
if you want to search for a song:

    mpv --ytdl-format=bestaudio 'ytdl://ytsearch1:John Butler Trio Ocean'
As a function:

    !#/bin/bash

    yt(){
        mpv --ytdl-format=bestaudio "ytdl://ytsearch1:$*"
    }
Edit: as per comment below, swapped '--no-video' for '--ytdl-format=bestaudio'
Re:YouTube to limit default video quality around the world f... by Hamuko on Wednesday March 25, 2020 @07:58AM (#22683732)
--no-video is not relevant to this conversation since it still fetches the video stream.
Re:YouTube to limit default video quality around the world f... by Zhyl on Wednesday March 25, 2020 @08:23AM (#22683869)
Interesting, I was not aware of that!

Shall amend my scripts immediately.