some cleanup

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

No files matched your search

+4
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)