Update and rename Beets.bash to BeetsTagger.bash
This commit is contained in:
parent
d97d7ac907
commit
059218a67b
1 changed files with 12 additions and 12 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
scriptVersion="1.0"
|
scriptVersion="1.0"
|
||||||
scriptName="Beets"
|
scriptName="BeetsTagger"
|
||||||
|
|
||||||
#### Import Settings
|
#### Import Settings
|
||||||
source /config/extended.conf
|
source /config/extended.conf
|
||||||
|
@ -50,8 +50,8 @@ ProcessWithBeets () {
|
||||||
|
|
||||||
# Input
|
# Input
|
||||||
# $1 Download Folder to process
|
# $1 Download Folder to process
|
||||||
if [ -f /config/extended/library-postprocessor.blb ]; then
|
if [ -f /config/extended/library-lidarr.blb ]; then
|
||||||
rm /config/extended/library-postprocessor.blb
|
rm /config/extended/library-lidarr.blb
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
fi
|
fi
|
||||||
if [ -f /config/extended/extended/logs/beets.log ]; then
|
if [ -f /config/extended/extended/logs/beets.log ]; then
|
||||||
|
@ -59,16 +59,16 @@ ProcessWithBeets () {
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "/config/extended/beets-postprocessor-match" ]; then
|
if [ -f "/config/extended/beets-lidarr-match" ]; then
|
||||||
rm "/config/extended/beets-postprocessor-match"
|
rm "/config/extended/beets-lidarr-match"
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
fi
|
fi
|
||||||
touch "/config/extended/beets-postprocessor-match"
|
touch "/config/extended/beets-lidarr-match"
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
|
|
||||||
log "$1 :: Being matching with beets!"
|
log "$1 :: Being matching with beets!"
|
||||||
beet -c /config/extended/beets-config-postprocessor.yaml -l /config/extended/library-postprocessor.blb -d "$1" import -qC "$1"
|
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-postprocessor-match" | wc -l) -gt 0 ]; then
|
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!"
|
log "$1 :: SUCCESS :: Matched with beets!"
|
||||||
|
|
||||||
# Fix tags
|
# Fix tags
|
||||||
|
@ -103,13 +103,13 @@ ProcessWithBeets () {
|
||||||
log "$1 :: ERROR :: Unable to match using beets to a musicbrainz release..."
|
log "$1 :: ERROR :: Unable to match using beets to a musicbrainz release..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "/config/extended/beets-postprocessor-match" ]; then
|
if [ -f "/config/extended/beets-lidarr-match" ]; then
|
||||||
rm "/config/extended/beets-postprocessor-match"
|
rm "/config/extended/beets-lidarr-match"
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f /config/extended/library-postprocessor.blb ]; then
|
if [ -f /config/extended/library-lidarr.blb ]; then
|
||||||
rm /config/extended/library-postprocessor.blb
|
rm /config/extended/library-lidarr.blb
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
fi
|
fi
|
||||||
if [ -f /config/extended/logs/beets.log ]; then
|
if [ -f /config/extended/logs/beets.log ]; then
|
Loading…
Reference in a new issue