master
RandomNinjaAtk 4 years ago committed by GitHub
parent 96307f75e4
commit 220dd9015e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -188,12 +188,13 @@ Main () {
sleep 0.1 sleep 0.1
if find "$1" -type f -iregex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" | read; then if find "$1" -type f -iregex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" | read; then
beet -c /config/scripts/configs/beets-config.yaml -l /scripts/library.blb -d "$1" import -q "$1" > /dev/null beet -c /config/scripts/configs/beets-config.yaml -l /scripts/library.blb -d "$1" import -q "$1"
if find "$1" -type f -iregex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" -newer "/scripts/beets-match" | read; then if find "$1" -type f -iregex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" -newer "/scripts/beets-match" | read; then
echo "SUCCESS: Matched with beets!" echo "SUCCESS: Matched with beets!"
else else
rm -rf "$1"/* rm -rf "$1"/*
echo "ERROR: Unable to match using beets to a musicbrainz release, marking download as failed..." && exit 1 echo "ERROR: Unable to match using beets to a musicbrainz release, marking download as failed..."
exit 1
fi fi
fi fi

Loading…
Cancel
Save