mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-10-28 04:44:11 -07: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
|
||||
lg "Search Query: $search"
|
||||
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
|
||||
@ -714,6 +714,7 @@ main() {
|
||||
|
||||
for ep in $episodes; do
|
||||
open_episode "$selection_id" "$ep" "$download_dir"
|
||||
sleep 2
|
||||
done
|
||||
|
||||
if ((is_download)); then
|
||||
|
Loading…
Reference in New Issue
Block a user