mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-11-22 03:19:53 -08:00
fix duplicate search results (#15)
This commit is contained in:
parent
2bab68a887
commit
2c7789c58f
3
ani-cli
3
ani-cli
@ -292,7 +292,7 @@ search_anime() {
|
|||||||
fi
|
fi
|
||||||
lg "Search Query: $search"
|
lg "Search Query: $search"
|
||||||
curl -s "https://gogoanime.lu//search.html?keyword=$search" -L |
|
curl -s "https://gogoanime.lu//search.html?keyword=$search" -L |
|
||||||
sed -nE 's_^[[:space:]]*<a href="/category/([^"]*)" title.*_\1_p'
|
sed -nE 's_^[[:space:]]*<a href="/category/([^"]*)" title.*">$_\1_p'
|
||||||
}
|
}
|
||||||
|
|
||||||
# only lets the user pass in case of a valid search
|
# only lets the user pass in case of a valid search
|
||||||
@ -714,6 +714,7 @@ main() {
|
|||||||
|
|
||||||
for ep in $episodes; do
|
for ep in $episodes; do
|
||||||
open_episode "$selection_id" "$ep" "$download_dir"
|
open_episode "$selection_id" "$ep" "$download_dir"
|
||||||
|
sleep 2
|
||||||
done
|
done
|
||||||
|
|
||||||
if ((is_download)); then
|
if ((is_download)); then
|
||||||
|
Loading…
Reference in New Issue
Block a user