1.0.137 - prevent duplicate tags...

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

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
scriptVersion="1.0.136" scriptVersion="1.0.137"
lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
if [ "$lidarrUrlBase" = "null" ]; then if [ "$lidarrUrlBase" = "null" ]; then
lidarrUrlBase="" lidarrUrlBase=""
@ -656,6 +656,7 @@ DownloadProcess () {
lrcFile="${file%.*}.lrc" lrcFile="${file%.*}.lrc"
if [ -f "$lrcFile" ]; then if [ -f "$lrcFile" ]; then
log ":: $processNumber of $wantedListAlbumTotal :: $lidarrArtistNameSanitized :: $lidarrAlbumTitle :: Embedding lyrics (lrc) into $file" log ":: $processNumber of $wantedListAlbumTotal :: $lidarrArtistNameSanitized :: $lidarrAlbumTitle :: Embedding lyrics (lrc) into $file"
metaflac --remove-tag=Lyrics "$file"
metaflac --set-tag-from-file="Lyrics=$lrcFile" "$file" metaflac --set-tag-from-file="Lyrics=$lrcFile" "$file"
rm "$lrcFile" rm "$lrcFile"
fi fi

Loading…
Cancel
Save