mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-11-22 03:19:53 -08:00
run insert queries in background before search_eps function
This commit is contained in:
parent
f95ae51af8
commit
7a3a61bb58
4
ani-cli
4
ani-cli
@ -539,7 +539,7 @@ anime_selection() {
|
|||||||
done <<< "$search_results"
|
done <<< "$search_results"
|
||||||
|
|
||||||
[[ -z "$selection_id" ]] && die "Invalid number entered"
|
[[ -z "$selection_id" ]] && die "Invalid number entered"
|
||||||
insert_history "search" "$selection_id"
|
insert_history "search" "$selection_id" &
|
||||||
lg "Selection: $selection_id"
|
lg "Selection: $selection_id"
|
||||||
search_eps "$anime_id"
|
search_eps "$anime_id"
|
||||||
return 0
|
return 0
|
||||||
@ -688,7 +688,7 @@ stream() {
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
selection_id="$anime_id"
|
selection_id="$anime_id"
|
||||||
insert_history "search" "$anime_id"
|
insert_history "search" "$anime_id" &
|
||||||
search_eps "$anime_id"
|
search_eps "$anime_id"
|
||||||
fi
|
fi
|
||||||
episode_selection
|
episode_selection
|
||||||
|
Loading…
Reference in New Issue
Block a user