Skip to content

Commit e8eaa31

Browse files
Update BeetsPostProcessor.bash
1 parent 4b513a7 commit e8eaa31

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

lidarr/legacy_unsupported/BeetsPostProcessor.bash

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,25 @@ ProcessWithBeets () {
5353

5454
# Input
5555
# $1 Download Folder to process
56-
if [ -f /config/library-postprocessor.blb ]; then
57-
rm /config/library-postprocessor.blb
56+
if [ -f /config/extended/library-postprocessor.blb ]; then
57+
rm /config/extended/library-postprocessor.blb
5858
sleep 0.5
5959
fi
60-
if [ -f /config/extended/logs/beets.log ]; then
61-
rm /config/extended/logs/beets.log
60+
if [ -f /config/extended/extended/logs/beets.log ]; then
61+
rm /config/extended/extended/logs/beets.log
6262
sleep 0.5
6363
fi
6464

65-
if [ -f "/config/beets-postprocessor-match" ]; then
66-
rm "/config/beets-postprocessor-match"
65+
if [ -f "/config/extended/beets-postprocessor-match" ]; then
66+
rm "/config/extended/beets-postprocessor-match"
6767
sleep 0.5
6868
fi
69-
touch "/config/beets-postprocessor-match"
69+
touch "/config/extended/beets-postprocessor-match"
7070
sleep 0.5
7171

7272
log "$1 :: Being matching with beets!"
73-
beet -c /config/extended/beets-config.yaml -l /config/library-postprocessor.blb -d "$1" import -qC "$1"
74-
if [ $(find "$1" -type f -regex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" -newer "/config/beets-postprocessor-match" | wc -l) -gt 0 ]; then
73+
beet -c /config/extended/beets-config-postprocessor.yaml -l /config/extended/library-postprocessor.blb -d "$1" import -qC "$1"
74+
if [ $(find "$1" -type f -regex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" -newer "/config/extended/beets-postprocessor-match" | wc -l) -gt 0 ]; then
7575
log "$1 :: SUCCESS :: Matched with beets!"
7676

7777
# Fix tags
@@ -106,13 +106,13 @@ ProcessWithBeets () {
106106
log "$1 :: ERROR :: Unable to match using beets to a musicbrainz release..."
107107
fi
108108

109-
if [ -f "/config/beets-postprocessor-match" ]; then
110-
rm "/config/beets-postprocessor-match"
109+
if [ -f "/config/extended/beets-postprocessor-match" ]; then
110+
rm "/config/extended/beets-postprocessor-match"
111111
sleep 0.5
112112
fi
113113

114-
if [ -f /config/library-postprocessor.blb ]; then
115-
rm /config/library-postprocessor.blb
114+
if [ -f /config/extended/library-postprocessor.blb ]; then
115+
rm /config/extended/library-postprocessor.blb
116116
sleep 0.5
117117
fi
118118
if [ -f /config/extended/logs/beets.log ]; then

0 commit comments

Comments
 (0)