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.
13 lines
218 B
13 lines
218 B
6 years ago
|
#!/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 | awk '{print $1}')
|
||
|
|
||
|
mpv "$url" --ytdl-format="$code"
|
||
|
|