From b8bef5812244f6c4d7f929459b5f6ac5d415da3d Mon Sep 17 00:00:00 2001 From: fabh2o Date: Sat, 6 Feb 2021 18:34:09 +0100 Subject: [PATCH] fix indentation --- AAXtoMP3 | 18 +++++++++--------- README.md | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/AAXtoMP3 b/AAXtoMP3 index 5d7deb3..375e8b9 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -19,7 +19,7 @@ DEBUG=0 # Default off, If set extremely verbose output. noclobber=0 # Default off, clobber only if flag is enabled continue=0 # Default off, If set Transcoding is skipped and chapter splitting starts at chapter continueAt. continueAt=1 # Optional chapter to continue splitting the chapters. -appendNarrator=0 # Default off, Append the narrator name to the Folder name. Needs mediainfo +appendNarrator=0 # Default off, Append the narrator name to the Folder name. Needs mediainfo # ----- # Code tip Do not have any script above this point that calls a function or a binary. If you do @@ -60,8 +60,8 @@ while true; do --continue ) continueAt="$2"; continue=1; shift 2 ;; # Compression level --level ) level="$2"; shift 2 ;; - # Append Narrator - --append-narrator ) appendNarrator=1; shift ;; + # Append Narrator + --append-narrator ) appendNarrator=1; shift ;; # Command synopsis. -h | --help ) printf "$usage" $0 ; exit ;; # Standard flag signifying the end of command line processing. @@ -300,7 +300,7 @@ fi # ----- # Check for presence of mediainfo in case the flag --append-narrator is used if [[ "${appendNarrator}" == 1 && "x$(type -P mediainfo)" == "x" ]]; then - echo "ERROR --append-narator specified, but mediainfo is not in PATH" + echo "ERROR --append-narator specified, but mediainfo is not in PATH" exit 1 fi @@ -444,11 +444,11 @@ do description="" publisher="" fi - # If the flag --append-narrator is used, we append the narrator name to the output dir - if [[ "${appendNarrator}" == 1 ]]; then - output_directory="${output_directory}"-"${narrator}" - output_file="${output_directory}/${title}.${extension}" - fi + # If the flag --append-narrator is used, we append the narrator name to the output dir + if [[ "${appendNarrator}" == 1 ]]; then + output_directory="${output_directory}"-"${narrator}" + output_file="${output_directory}/${title}.${extension}" + fi if [[ "${noclobber}" = "1" ]] && [[ -d "${output_directory}" ]]; then log "Noclobber enabled but directory '${output_directory}' exists. Exiting to avoid overwriting" exit 0 diff --git a/README.md b/README.md index a197885..3e1d6e0 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ bash AAXtoMP3 [-f|--flac] [-o|--opus] [-a|-aac] [-s|--single] [--level