From 7b03f71130d72e6502e8f215decefc5bb4c79330 Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Sat, 1 Jan 2022 16:54:32 -0800 Subject: [PATCH] update readme and fix handling of multiword vs selected search query --- README.md | 7 ++---- ani-cli | 74 ++++++++++++++++++++++++++++++------------------------- 2 files changed, 43 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 7858c15..c0f272f 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [**_Setup_**](#setup) | [**_Usage_**](#usage) | [**_Screenshots_**](#screenshots) -![Aniwrapper screenshot](https://imgur.com/bhea2u3.png) +![Aniwrapper screenshot](https://imgur.com/ZAmoEUA.png) @@ -146,8 +146,6 @@ The first menu consists of a search box and a list of anime titles corresponding The next menu is where you select the anime to watch from a narrowed down list. Elements that have a blue border and text color indicate which anime have been watched before -- _In the future, I'd like to make it so if you select an option from the list of previously searched anime, then it will skip this and go on to episode selection_ - ## Episode Selection In the episode selection menu, you can select an individual episode from the list, provide a single episode, or provide a range of episodes as two space separated integers `start_episode end_episode`. Like in the previous menu, any element with a blue border and text-color indicates that episode has been watched before @@ -175,7 +173,6 @@ In the episode selection menu, you can select an individual episode from the lis # ex. The following command will launch aniwrapper in command-line download mode with quality selection aniwrapper -cqd - ### Option 1: Streaming - [click here](https://imgur.com/nLjqLCL.gif) for an example showing streaming a new anime @@ -244,7 +241,7 @@ This would open/download episodes 1 2 3 4 5 6
Aniwrapper Main Menu -![aniwrapper frontpage](https://imgur.com/bhea2u3.png) +![aniwrapper frontpage](https://imgur.com/ZAmoEUA.png) Aniwrapper Streaming Menu ![aniwrapper streaming options](https://imgur.com/jVJQERk.png) More to come soon... maybe diff --git a/ani-cli b/ani-cli index 3a0d4e2..41f6e0a 100755 --- a/ani-cli +++ b/ani-cli @@ -58,7 +58,14 @@ log() { search_anime() { # get anime name along with its id - search=${1// /-} + log "NUM ARGS: $#" + if [[ $# -gt 1 ]]; then + search="$*" + search="${search// /-}" + else + search="$1" + fi + # search=${1// /-} log "Search Query: $search" titlepattern='