mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-11-22 03:19:53 -08:00
fix updating datetime and enforce list mode on sqlite3
This commit is contained in:
parent
41c40bbd38
commit
d2611e6e33
4
ani-cli
4
ani-cli
@ -167,7 +167,7 @@ generate_span() {
|
|||||||
#####################
|
#####################
|
||||||
|
|
||||||
run_stmt() {
|
run_stmt() {
|
||||||
printf "%s\n" "$1" | sqlite3 -noheader "$HISTORY_DB"
|
printf "%s\n" "$1" | sqlite3 -noheader -list "$HISTORY_DB"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Return number of matches for anime/episode in db
|
# Return number of matches for anime/episode in db
|
||||||
@ -207,7 +207,7 @@ update_date() {
|
|||||||
stmt=""
|
stmt=""
|
||||||
case "$1" in
|
case "$1" in
|
||||||
directory)
|
directory)
|
||||||
stmt="UPDATE file_history SET watch_date = '$datetime' WHERE directory = '$2' and filename = '$3';"
|
stmt="UPDATE file_history SET watch_date = '$datetime' WHERE directory = '$2' and filename = 'DIRECTORY';"
|
||||||
;;
|
;;
|
||||||
file)
|
file)
|
||||||
stmt="UPDATE file_history SET watch_date = '$datetime' WHERE directory = '$2' and filename = '$3';"
|
stmt="UPDATE file_history SET watch_date = '$datetime' WHERE directory = '$2' and filename = '$3';"
|
||||||
|
Loading…
Reference in New Issue
Block a user