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