You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
229 B

#!/bin/bash
url="$1"
if [ -z "$url" ]; then
url=$(rofi -dmenu -p 'URL')
fi
code=$(youtube-dl "$url" -F | sed -n '/format code/,$ p' | tail -n +2 | rofi -dmenu -p Quality | awk '{print $1}')
mpv "$url" --ytdl-format="$code"