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:
parent
0382553f3b
commit
c098bbfb14
1 changed files with 3 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue