mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-11-22 03:19:53 -08:00
Compare commits
No commits in common. "7a3a61bb589375c08b56f55fad14f1086af80922" and "d7bd5899b5e786cccf0de9ad24aed0842379ff61" have entirely different histories.
7a3a61bb58
...
d7bd5899b5
18
ani-cli
18
ani-cli
@ -245,7 +245,9 @@ update_date() {
|
||||
insert_history() {
|
||||
datetime=$(date +'%Y-%m-%d %H:%M:%S')
|
||||
lg "Checking if ($*) exists in db"
|
||||
if ! check_db "$@"; then
|
||||
check_db "$@"
|
||||
res="$?"
|
||||
if [[ $res -gt 0 ]]; then
|
||||
lg "Match found... Updating row in history db..."
|
||||
update_date "$@"
|
||||
res=$?
|
||||
@ -406,9 +408,13 @@ find_media() {
|
||||
case "$selection" in
|
||||
Back | ../)
|
||||
dotdotslash="${inp%/*}"
|
||||
[ -z "$dotdotslash" ] && dotdotslash="/"
|
||||
insert_history "directory" "$dotdotslash"
|
||||
find_media "$dotdotslash"
|
||||
if [ -z "$dotdotslash" ]; then
|
||||
insert_history "directory" "/"
|
||||
find_media "/"
|
||||
else
|
||||
insert_history "directory" "$dotdotslash"
|
||||
find_media "$dotdotslash"
|
||||
fi
|
||||
;;
|
||||
Quit)
|
||||
return 1
|
||||
@ -539,7 +545,7 @@ anime_selection() {
|
||||
done <<< "$search_results"
|
||||
|
||||
[[ -z "$selection_id" ]] && die "Invalid number entered"
|
||||
insert_history "search" "$selection_id" &
|
||||
insert_history "search" "$selection_id"
|
||||
lg "Selection: $selection_id"
|
||||
search_eps "$anime_id"
|
||||
return 0
|
||||
@ -688,7 +694,7 @@ stream() {
|
||||
fi
|
||||
else
|
||||
selection_id="$anime_id"
|
||||
insert_history "search" "$anime_id" &
|
||||
insert_history "search" "$anime_id"
|
||||
search_eps "$anime_id"
|
||||
fi
|
||||
episode_selection
|
||||
|
Loading…
Reference in New Issue
Block a user