From 403afc5736986fc7b1dab76c168a616013d9ce93 Mon Sep 17 00:00:00 2001 From: Ashley //// Date: Thu, 18 Jan 2024 16:14:41 +0000 Subject: [PATCH] version 1.2 --- poke-cli.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poke-cli.sh b/poke-cli.sh index 52dea80d..7ec48bb7 100644 --- a/poke-cli.sh +++ b/poke-cli.sh @@ -24,7 +24,7 @@ function display_help { } function display_version { -echo "poke-cli version 1.1 +echo "poke-cli version 1.2 Play videos from your terminal! https://codeberg.org/ashley/poke @@ -94,7 +94,7 @@ if ! command -v jq &> /dev/null && ! command -v gojq &> /dev/null; then exit 1 fi -json_data=$(curl -s "$invid_api_url/api/v1/search?q=${search_query// /+}") +json_data=$(curl -s "$invid_api_url/api/v1/search?q=${search_query// /+}&type=video") video_count=$(echo "$json_data" | jq -r '. | length') if [ $video_count -eq 0 ]; then