From 73e6b8d18184390b6d71b41a55698b601aa94a51 Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Mon, 2 May 2022 17:19:05 -0700 Subject: [PATCH] add alternate link feature from main script --- ani-cli | 140 +++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 89 insertions(+), 51 deletions(-) diff --git a/ani-cli b/ani-cli index 31e8727..888ac48 100755 --- a/ani-cli +++ b/ani-cli @@ -1,5 +1,6 @@ #!/usr/bin/env bash +AGENT="Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0" BASE_URL="https://goload.pro" CFG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/aniwrapper" URLFILE="${XDG_CONFIG_HOME:-$HOME/.config}/aniwrapper/ani-url" @@ -86,7 +87,7 @@ check_input() { get_dpage_link() { anime_id=$1 ep_no=$2 - curl -s "$BASE_URL/videos/${anime_id}${ep_no}" | sed -nE 's_^[[:space:]]*