From c098bbfb145d5ed3b140cf674a3de116f214a922 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Wed, 12 Aug 2020 23:16:40 +0200 Subject: [PATCH] fix issues with video IDs containing hyphens --- home/streamcrap | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/home/streamcrap b/home/streamcrap index a478feb..1b266fe 100644 --- a/home/streamcrap +++ b/home/streamcrap @@ -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() {