|
|
@ -386,12 +386,12 @@ ProcessWithBeets () {
|
|
|
|
|
|
|
|
|
|
|
|
trackcount=$(find "$1" -type f -regex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" | wc -l)
|
|
|
|
trackcount=$(find "$1" -type f -regex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" | wc -l)
|
|
|
|
|
|
|
|
|
|
|
|
if [ -f /config/beets_temp_library.blb ]; then
|
|
|
|
if [ -f /scripts/library.blb ]; then
|
|
|
|
rm /config/beets_temp_library.blb
|
|
|
|
rm /scripts/library.blb
|
|
|
|
sleep 0.1
|
|
|
|
sleep 0.1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if [ -f /config/beets_temp.log ]; then
|
|
|
|
if [ -f /scripts/beets/beets.log ]; then
|
|
|
|
rm /config/beets_temp.log
|
|
|
|
rm /scripts/beets.log
|
|
|
|
sleep 0.1
|
|
|
|
sleep 0.1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
@ -403,7 +403,7 @@ ProcessWithBeets () {
|
|
|
|
sleep 0.1
|
|
|
|
sleep 0.1
|
|
|
|
|
|
|
|
|
|
|
|
if [ $(find "$1" -type f -regex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" | wc -l) -gt 0 ]; then
|
|
|
|
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
|
|
|
|
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!"
|
|
|
|
log ":: $processNumber of $wantedListAlbumTotal :: $lidarrArtistNameSanitized :: $lidarrAlbumTitle :: SUCCESS: Matched with beets!"
|
|
|
|
else
|
|
|
|
else
|
|
|
|