diff --git a/root/scripts/readarr-pp.bash b/root/scripts/readarr-pp.bash index 98d6dce..78d8faf 100644 --- a/root/scripts/readarr-pp.bash +++ b/root/scripts/readarr-pp.bash @@ -2,7 +2,7 @@ export LC_ALL=C.UTF-8 export LANG=C.UTF-8 TITLESHORT="APP" -ScriptVersion="1.08" +ScriptVersion="1.09" SECONDS=0 set -e @@ -16,7 +16,7 @@ echo "Processing: $1" Clean () { if [ $(find "$1" -type f -regex ".*/.*\.\(\m4b|flac\|mp3\|m4a\|alac\|ogg\|opus\)" | wc -l) -gt 0 ]; then - find "$1" -type f -not -regex ".*/.*\.\(flac\|mp3\|m4a\|alac\|ogg\|opus\)" -delete + find "$1" -type f -not -regex ".*/.*\.\(\m4b\flac\|mp3\|m4a\|alac\|ogg\|opus\)" -delete find "$1" -mindepth 2 -type f -exec mv "{}" "$1"/ \; find "$1" -mindepth 1 -type d -delete else