From 16f86c7e230dae40c7237c202349e3651b28ba33 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Mon, 13 Jun 2022 11:57:56 +0000 Subject: [PATCH] Update download.sh --- root/scripts/download.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/root/scripts/download.sh b/root/scripts/download.sh index 82886ed..eed5698 100644 --- a/root/scripts/download.sh +++ b/root/scripts/download.sh @@ -386,12 +386,12 @@ ProcessWithBeets () { trackcount=$(find "$1" -type f -regex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" | wc -l) - if [ -f /config/beets_temp_library.blb ]; then - rm /config/beets_temp_library.blb + if [ -f /scripts/library.blb ]; then + rm /scripts/library.blb sleep 0.1 - fi - if [ -f /config/beets_temp.log ]; then - rm /config/beets_temp.log + fi + if [ -f /scripts/beets/beets.log ]; then + rm /scripts/beets.log sleep 0.1 fi @@ -403,7 +403,7 @@ ProcessWithBeets () { sleep 0.1 if [ $(find "$1" -type f -regex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" | wc -l) -gt 0 ]; then - beet -l /config/beets_temp_library.blb -d "$1" import -qC "$1" + beet -c /scripts/beets-config.yaml -l /scripts/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 :: $lidarrArtistNameSanitized :: $lidarrAlbumTitle :: SUCCESS: Matched with beets!" else