mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-25 05:08:04 +01:00
version 1.2
This commit is contained in:
parent
da8e8bbd8c
commit
403afc5736
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue