mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-10-28 04:44:11 -07:00
add verbose check to more print statements
This commit is contained in:
parent
63450b38ec
commit
e42629d406
6
ani-cli
6
ani-cli
@ -109,7 +109,7 @@ dep_ch() {
|
||||
check_anime_name() {
|
||||
# Maybe change to query the db for a similar name
|
||||
# Check to make sure passed in name is not empty
|
||||
printf "%s\n" "VAR: $1"
|
||||
[ "$VERBOSE" -eq 1 ] && printf "%s\n" "VAR: $1"
|
||||
if [[ "$1" == "" ]] || [[ "$1" == " " ]] || [[ "$1" == "\n" ]]; then
|
||||
printf "%s\n" "Passed in name is null"
|
||||
return 1
|
||||
@ -328,7 +328,7 @@ episode_selection() {
|
||||
fi
|
||||
done
|
||||
|
||||
printf "WATCH HISTORY: %s\n" "$watch_history"
|
||||
[ "$VERBOSE" -eq 1 ] && printf "WATCH HISTORY: %s\n" "$watch_history"
|
||||
# cnt=$(printf "%s\n" "$cnt_stmt" | sqlite3 "$history_db" | tail -1)
|
||||
# printf "NUM EPISODES: $last_ep_number"
|
||||
# get user choice and set the start and end
|
||||
@ -370,7 +370,7 @@ open_episode() {
|
||||
printf "$c_reset"
|
||||
fi
|
||||
|
||||
printf "Getting data for episode %d\n" $episode
|
||||
[ "$VERBOSE" -eq 1 ] && printf "Getting data for episode %d\n" $episode
|
||||
|
||||
insert_history "$anime_id" "$episode"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user