fix duplicate search results (#15)

This commit is contained in:
Kyle Yasuda 2022-07-29 22:53:56 -07:00 committed by GitHub
parent 2bab68a887
commit 2c7789c58f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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