mirror of
https://github.com/CoolnsX/repos_scripts.git
synced 2025-12-20 07:15:20 +05:30
install
This commit is contained in:
6
ani-cli
6
ani-cli
@@ -42,7 +42,7 @@ search_anime () {
|
||||
search=$1
|
||||
titlepattern='<a href="/category/'
|
||||
|
||||
curl -s "https://gogoanime.vc//search.html" \
|
||||
curl -s "https://gogoanime.pe//search.html" \
|
||||
-G \
|
||||
-d "keyword=$search" |
|
||||
sed -n -E '
|
||||
@@ -54,7 +54,7 @@ search_eps () {
|
||||
# get available episodes for anime_id
|
||||
anime_id=$1
|
||||
|
||||
curl -s "https://gogoanime.vc/category/$anime_id" |
|
||||
curl -s "https://gogoanime.pe/category/$anime_id" |
|
||||
sed -n -E '
|
||||
/^[[:space:]]*<a href="#" class="active" ep_start/{
|
||||
s/.* '\''([0-9]*)'\'' ep_end = '\''([0-9]*)'\''.*/\2/p
|
||||
@@ -69,7 +69,7 @@ get_links () {
|
||||
ep_no=$2
|
||||
|
||||
dpage_url=$(
|
||||
curl -s "https://gogoanime.vc/$anime_id-episode-$ep_no" |
|
||||
curl -s "https://gogoanime.pe/$anime_id-episode-$ep_no" |
|
||||
sed -n -E 's_^[[:space:]]*<a href="#" rel="100" data-video="([^"]*)" >.*_https:\1_p')
|
||||
|
||||
curl -s "$dpage_url" |
|
||||
|
||||
Reference in New Issue
Block a user