Update BeetsTagger.bash
This commit is contained in:
parent
152759e91c
commit
71a47d8fcc
1 changed files with 8 additions and 4 deletions
|
@ -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
|
|
||||||
|
|
Loading…
Reference in a new issue