Update download.sh

pull/6/head
RandomNinjaAtk 2 years ago committed by GitHub
parent 8283fcae14
commit 16f86c7e23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save