mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2025-01-30 10:27:38 -08:00
gogoanime working again
This commit is contained in:
parent
876b6dd5dc
commit
e5c2a1796e
6
ani-cli
6
ani-cli
@ -42,7 +42,7 @@ search_anime () {
|
|||||||
search=$(printf '%s' "$1" | tr ' ' '-')
|
search=$(printf '%s' "$1" | tr ' ' '-')
|
||||||
titlepattern='<a href="/category/'
|
titlepattern='<a href="/category/'
|
||||||
|
|
||||||
curl -s "https://gogoanime.vc//search.html" \
|
curl -s "https://gogoanime.pe//search.html" \
|
||||||
-G \
|
-G \
|
||||||
-d "keyword=$search" |
|
-d "keyword=$search" |
|
||||||
sed -n -E '
|
sed -n -E '
|
||||||
@ -54,7 +54,7 @@ search_eps () {
|
|||||||
# get available episodes for anime_id
|
# get available episodes for anime_id
|
||||||
anime_id=$1
|
anime_id=$1
|
||||||
|
|
||||||
curl -s "https://gogoanime.vc/category/$anime_id" |
|
curl -s "https://gogoanime.pe/category/$anime_id" |
|
||||||
sed -n -E '
|
sed -n -E '
|
||||||
/^[[:space:]]*<a href="#" class="active" ep_start/{
|
/^[[:space:]]*<a href="#" class="active" ep_start/{
|
||||||
s/.* '\''([0-9]*)'\'' ep_end = '\''([0-9]*)'\''.*/\2/p
|
s/.* '\''([0-9]*)'\'' ep_end = '\''([0-9]*)'\''.*/\2/p
|
||||||
@ -68,7 +68,7 @@ get_dpage_link() {
|
|||||||
anime_id=$1
|
anime_id=$1
|
||||||
ep_no=$2
|
ep_no=$2
|
||||||
|
|
||||||
curl -s "https://gogoanime.vc/$anime_id-episode-$ep_no" |
|
curl -s "https://gogoanime.pe/$anime_id-episode-$ep_no" |
|
||||||
sed -n -E '
|
sed -n -E '
|
||||||
/^[[:space:]]*<li class="dowloads">/{
|
/^[[:space:]]*<li class="dowloads">/{
|
||||||
s/.*href="([^"]*)".*/\1/p
|
s/.*href="([^"]*)".*/\1/p
|
||||||
|
Loading…
x
Reference in New Issue
Block a user