1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 04:19:03 -08:00

fix issues with video IDs containing hyphens

This commit is contained in:
Connor Olding 2020-08-12 23:16:40 +02:00
parent 0382553f3b
commit c098bbfb14

View file

@ -54,7 +54,7 @@ mpv_watch() {
--force-window=yes \
--af=lavfi="[$_M_PROCESS]" \
--ytdl-format='[width<=1280]/best' \
"$@" "$url"
"$@" -- "$url"
popd >/dev/null
}
@ -84,7 +84,8 @@ yt() {
}
ytg() {
yt "$1" --ytdl-format=22/95/300/best "$@"
local vid="$1"; shift
yt "$vid" --ytdl-format=22/95/300/best "$@"
}
ytll() {