From 28666ca70a3bd9996022e405763798a984b3395e Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Sat, 6 Nov 2021 21:18:24 -0700 Subject: [PATCH] fix querying anime --- ani-cli | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/ani-cli b/ani-cli index f4f1494..18f224b 100755 --- a/ani-cli +++ b/ani-cli @@ -5,6 +5,7 @@ if [[ -z "$XDG_CONFIG_HOME" ]]; then XDG_CONFIG_HOME="$HOME/.config" fi +BASE_URL="https://gogoanime.cm" CFG_DIR="$XDG_CONFIG_HOME/ani-cli" ROFI_CFG="meh.rasi" @@ -52,21 +53,17 @@ err() { search_anime() { # get anime name along with its id search=$(printf '%s' "$1" | tr ' ' '-') - titlepattern='/{ s/.*href="([^"]*)".*/\1/p