mirror of
https://github.com/notwa/rc
synced 2024-05-01 19:23:24 -07:00
fix issues with video IDs containing hyphens
This commit is contained in:
parent
0382553f3b
commit
c098bbfb14
|
@ -54,7 +54,7 @@ mpv_watch() {
|
||||||
--force-window=yes \
|
--force-window=yes \
|
||||||
--af=lavfi="[$_M_PROCESS]" \
|
--af=lavfi="[$_M_PROCESS]" \
|
||||||
--ytdl-format='[width<=1280]/best' \
|
--ytdl-format='[width<=1280]/best' \
|
||||||
"$@" "$url"
|
"$@" -- "$url"
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,7 +84,8 @@ yt() {
|
||||||
}
|
}
|
||||||
|
|
||||||
ytg() {
|
ytg() {
|
||||||
yt "$1" --ytdl-format=22/95/300/best "$@"
|
local vid="$1"; shift
|
||||||
|
yt "$vid" --ytdl-format=22/95/300/best "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
ytll() {
|
ytll() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user