From a3684d192459258eac2dfd9a753b90d63e24ffb9 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Fri, 4 Nov 2022 19:57:03 -0400 Subject: [PATCH] v1.0.270 - Adjust beets file locations --- root/scripts/Audio.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/root/scripts/Audio.sh b/root/scripts/Audio.sh index a86fd04..bbf47e4 100644 --- a/root/scripts/Audio.sh +++ b/root/scripts/Audio.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.269" +scriptVersion="1.0.270" if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" if [ "$lidarrUrlBase" == "null" ]; then @@ -746,12 +746,12 @@ DownloadProcess () { ProcessWithBeets () { # Input # $1 Download Folder to process - if [ -f /scripts/library.blb ]; then - rm /scripts/library.blb + if [ -f /config/extended/beets-library.blb ]; then + rm /config/extended/beets-library.blb sleep 0.1 fi - if [ -f /scripts/beets.log ]; then - rm /scripts/beets.log + if [ -f /config/extended/logs/beets.log ]; then + rm /config/extended/logs/beets.log sleep 0.1 fi @@ -762,7 +762,7 @@ ProcessWithBeets () { touch "/config/beets-match" sleep 0.1 - beet -c /scripts/beets-config.yaml -l /scripts/library.blb -d "$1" import -qC "$1" + beet -c /config/extended/scripts/beets-config.yaml -l /config/extended/beets-library.blb-d "$1" import -qC "$1" if [ $(find "$1" -type f -regex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" -newer "/config/beets-match" | wc -l) -gt 0 ]; then log "$processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: SUCCESS: Matched with beets!" find "$downloadPath/incomplete" -type f -iname "*.flac" -print0 | while IFS= read -r -d '' file; do