mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-11-22 03:19:53 -08:00
update watch history highlighting when there is an episode 0
This commit is contained in:
parent
04476f3ba4
commit
6dd2b4c279
4
ani-cli
4
ani-cli
@ -678,7 +678,11 @@ episode_selection() {
|
|||||||
# Get Watch History for $anime_id as comma separated list
|
# Get Watch History for $anime_id as comma separated list
|
||||||
watch_history=""
|
watch_history=""
|
||||||
while read -r i; do
|
while read -r i; do
|
||||||
|
if ((FIRST_EP_NUMBER == 0)); then
|
||||||
|
[[ -z "$watch_history" ]] && watch_history="$((i))" || watch_history="$watch_history, $((i))"
|
||||||
|
else
|
||||||
[[ -z "$watch_history" ]] && watch_history="$((--i))" || watch_history="$watch_history, $((--i))"
|
[[ -z "$watch_history" ]] && watch_history="$((--i))" || watch_history="$watch_history, $((--i))"
|
||||||
|
fi
|
||||||
done < <(run_stmt "$stmt")
|
done < <(run_stmt "$stmt")
|
||||||
lg "Episode watch history -> $watch_history"
|
lg "Episode watch history -> $watch_history"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user