From 71a47d8fcce4cac55992d8ed1830e6ce3f0deabf Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Fri, 8 Sep 2023 20:17:02 -0400 Subject: [PATCH] Update BeetsTagger.bash --- lidarr/BeetsTagger.bash | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lidarr/BeetsTagger.bash b/lidarr/BeetsTagger.bash index b7c8e18..05663c7 100644 --- a/lidarr/BeetsTagger.bash +++ b/lidarr/BeetsTagger.bash @@ -46,9 +46,14 @@ else exit fi ProcessWithBeets () { - - SECONDS=0 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 @@ -117,6 +122,7 @@ ProcessWithBeets () { duration=$SECONDS log "$1 :: Finished in $(($duration / 60 )) minutes and $(($duration % 60 )) seconds!" + NotifyPlex "$getAlbumArtist" "$getAlbumArtistPath" } NotifyPlex () { @@ -129,7 +135,5 @@ NotifyPlex () { } ProcessWithBeets "$getFolderPath" -MetadataPostProcess "$lidarr_album_id" NotifyPlex "$getAlbumArtist" "$getAlbumArtistPath" exit -exit