mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-11-22 03:19:53 -08:00
Compare commits
No commits in common. "3117738f2797b3ceae638d4475c7b5425b48aab3" and "d9d75495534802d9cad9aa2ac89208bceebfda43" have entirely different histories.
3117738f27
...
d9d7549553
11
ani-cli
11
ani-cli
@ -216,7 +216,7 @@ search_anime() {
|
||||
search="${1// /}"
|
||||
fi
|
||||
lg "Search Query: $search"
|
||||
curl -s "https://gogoanime.dk//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'
|
||||
}
|
||||
|
||||
@ -606,9 +606,7 @@ main() {
|
||||
anime_name="${updated_episode%%/*}"
|
||||
lg "ANIME NAME: $anime_name"
|
||||
if ! check_db "search" "$anime_name"; then
|
||||
ep="${updated_episode##*/ep}"
|
||||
[ "$ep" = "$anime_name" ] && ep=1
|
||||
stmt="SELECT COUNT(*) FROM watch_history WHERE anime_name = '$anime_name' AND episode_number = '${ep:-1}';"
|
||||
stmt="SELECT COUNT(*) FROM search_history WHERE anime_name = '$anime_name';"
|
||||
lg "QUERY: $stmt"
|
||||
if [[ "$(run_stmt "$stmt")" -ne 0 ]]; then
|
||||
lg "$updated_episode watched before... adding to watched list"
|
||||
@ -625,11 +623,8 @@ main() {
|
||||
fi
|
||||
lg "SELECTION: $selection"
|
||||
selection_id="${selection%%/*}"
|
||||
anime_id="$selection_id"
|
||||
episode_list "$selection_id"
|
||||
ep_choice_start="${selection##*/ep}"
|
||||
lg "EP_CHOICE_START: $ep_choice_start"
|
||||
[ "$ep_choice_start" = "$selection_id" ] && get_episode
|
||||
get_episode
|
||||
;;
|
||||
esac
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user