Update BeetsTagger.bash

This commit is contained in:
RandomNinjaAtk 2023-09-08 20:17:02 -04:00 committed by GitHub
parent 152759e91c
commit 71a47d8fcc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,9 +46,14 @@ else
exit exit
fi fi
ProcessWithBeets () { ProcessWithBeets () {
SECONDS=0
log "$1 :: Start Processing..." log "$1 :: Start Processing..."
if find "$1" -type f -iname "*.flac" -print0 | read; then
sleep 0.01
else
log "$1 :: ERROR :: Only supports flac files, exiting..."
return
fi
SECONDS=0
# Input # Input
@ -117,6 +122,7 @@ ProcessWithBeets () {
duration=$SECONDS duration=$SECONDS
log "$1 :: Finished in $(($duration / 60 )) minutes and $(($duration % 60 )) seconds!" log "$1 :: Finished in $(($duration / 60 )) minutes and $(($duration % 60 )) seconds!"
NotifyPlex "$getAlbumArtist" "$getAlbumArtistPath"
} }
NotifyPlex () { NotifyPlex () {
@ -129,7 +135,5 @@ NotifyPlex () {
} }
ProcessWithBeets "$getFolderPath" ProcessWithBeets "$getFolderPath"
MetadataPostProcess "$lidarr_album_id"
NotifyPlex "$getAlbumArtist" "$getAlbumArtistPath" NotifyPlex "$getAlbumArtist" "$getAlbumArtistPath"
exit exit
exit