From 06f9918f2c1cd9f8cd3880416294e034f2207961 Mon Sep 17 00:00:00 2001 From: Lucas Date: Sat, 2 May 2020 20:46:28 +0000 Subject: [PATCH] invidious: change heuristic for using path as ID --- bin/invidious.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/invidious.sh b/bin/invidious.sh index 3b89f0a..3a64e00 100644 --- a/bin/invidious.sh +++ b/bin/invidious.sh @@ -65,10 +65,10 @@ get_id_query() get_id() { case $1 in - "https://youtu.be/" | *"/embed/"*) - get_id_path "$1" + *"?v="*) + get_id_query "$1" ;; - *) get_id_query "$1" + *) get_id_path "$1" ;; esac }