diff --git a/AAXtoMP3 b/AAXtoMP3 index 0f0490f..8699484 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -12,7 +12,7 @@ targetdir= DEBUG=0 # ----- -# Code tip Do not have any scritp above this point that calls a function or a binary. If you do +# Code tip Do not have any script above this point that calls a function or a binary. If you do # the $1 will no longer be a ARGV element. So you should only do basic variable setting above here. # # Process the command line options. This allows for un-ordered options. Sorta like a getops style @@ -135,9 +135,17 @@ do fi mkdir -p "${output_directory}" full_file_path="${output_directory}/${title}.${extension}" + bitrate="$(get_bitrate)k" + album_artist="$(get_metadata_value album_artist)" + album="$(get_metadata_value album)" + album_date="$(get_metadata_value date)" + copyright="$(get_metadata_value copyright)" + + # Big long DEBUG output. Fully describes the settings used for transcoding. I could probably do this better. + debug "$(printf '\n%-18s: %s\n%-18s: %s\n%-18s: %s\n%-18s: %s\n%-18s: %s\n%-18s: %s\n%-18s: %s\n%-18s: %s\n%-18s: %s\n%-18s: %s\n%-18s: %s\n%-18s: %s\n%-18s: %s\n%-18s: %sn%-18s: %s' title "${title}" auth_code "${auth_code}" mode "${mode}" path "${path}" codec "${codec}" bitrate "${bitrate}" artist "${artist}" album_artist "${album_artist}" album "${album}" album_date "${album_date}" genre "${genre}" copyright "${copyright}" full_file_path "${full_file_path}" metadata_file "${metadata_file}" working_directory "${working_directory}" )" # This is the primary transcode. All the heavy lifting is here. -