some cleanup

This commit is contained in:
upuv
2018-05-19 15:41:23 +10:00
parent f976940798
commit 10ca1e53e3
2 changed files with 21 additions and 4 deletions

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash
# ========================================================================
# Command Line Options
usage=$'\nUsage: AAXtoMP3.sh [--flac] [--aac] [--opus ] [--single] [--authcode <AUTHCODE>]\n[--output_dir <PATH>] {FILES}\n'
@ -100,6 +101,9 @@ for path
do
debug "Decoding ${path} with auth code ${auth_code}..."
# Check for Presense of Audiobook
[ ! -r "${path}" ] && echo "ERROR: Input file $path missing" ; exit 1
save_metadata "${path}"
genre=$(get_metadata_value genre)
artist=$(get_metadata_value artist)