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
1 changed files with 3 additions and 2 deletions

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() {