v1.1 - fixes
This commit is contained in:
parent
77b1c6b435
commit
d483eb859d
1 changed files with 28 additions and 33 deletions
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
scriptVersion="1.0"
|
||||
scriptVersion="1.1"
|
||||
scriptName="BeetsTagger"
|
||||
|
||||
#### Import Settings
|
||||
|
@ -69,11 +69,8 @@ ProcessWithBeets () {
|
|||
touch "/config/extended/beets-lidarr-match"
|
||||
sleep 0.5
|
||||
|
||||
log "$1 :: Being matching with beets!"
|
||||
log "$1 :: Begin matching with beets!"
|
||||
beet -c /config/extended/beets-config-lidarr.yaml -l /config/extended/library-lidarr.blb -d "$1" import -qC "$1"
|
||||
if [ $(find "$1" -type f -regex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" -newer "/config/extended/beets-lidarr-match" | wc -l) -gt 0 ]; then
|
||||
log "$1 :: SUCCESS :: Matched with beets!"
|
||||
|
||||
# Fix tags
|
||||
log "$1 :: Fixing Tags..."
|
||||
|
||||
|
@ -102,9 +99,7 @@ ProcessWithBeets () {
|
|||
done
|
||||
|
||||
log "$1 :: Fixing Tags Complete!"
|
||||
else
|
||||
log "$1 :: ERROR :: Unable to match using beets to a musicbrainz release..."
|
||||
fi
|
||||
|
||||
|
||||
if [ -f "/config/extended/beets-lidarr-match" ]; then
|
||||
rm "/config/extended/beets-lidarr-match"
|
||||
|
|
Loading…
Reference in a new issue