v2.3 - Hide error that can be ignored, don't alter track tags
This commit is contained in:
parent
970a17ae7f
commit
c1cfc839f9
1 changed files with 3 additions and 16 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
scriptVersion="2.2"
|
scriptVersion="2.3"
|
||||||
scriptName="Audio"
|
scriptName="Audio"
|
||||||
|
|
||||||
log () {
|
log () {
|
||||||
|
@ -543,8 +543,8 @@ DownloadProcess () {
|
||||||
|
|
||||||
# Consolidate files to a single folder
|
# Consolidate files to a single folder
|
||||||
log "$page :: $wantedAlbumListSource :: $processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: Consolidating files to single folder"
|
log "$page :: $wantedAlbumListSource :: $processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: Consolidating files to single folder"
|
||||||
find "$audioPath/incomplete" -type f -exec mv "{}" "$audioPath"/incomplete/ \;
|
find "$audioPath/incomplete" -type f -exec mv "{}" "$audioPath"/incomplete/ \; 2>/dev/null
|
||||||
find $audioPath/incomplete/ -type d -mindepth 1 -maxdepth 1 -exec rm -rf {} \;
|
find $audioPath/incomplete/ -type d -mindepth 1 -maxdepth 1 -exec rm -rf {} \; 2>/dev/null
|
||||||
|
|
||||||
downloadCount=$(find "$audioPath"/incomplete/ -type f -regex ".*/.*\.\(flac\|m4a\|mp3\)" | wc -l)
|
downloadCount=$(find "$audioPath"/incomplete/ -type f -regex ".*/.*\.\(flac\|m4a\|mp3\)" | wc -l)
|
||||||
if [ "$downloadCount" -gt "0" ]; then
|
if [ "$downloadCount" -gt "0" ]; then
|
||||||
|
@ -576,19 +576,6 @@ DownloadProcess () {
|
||||||
touch /config/extended/logs/downloaded/tidal/$1
|
touch /config/extended/logs/downloaded/tidal/$1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Correct Artist/albumartist Flac files
|
|
||||||
find "$audioPath/incomplete" -type f -iname "*.flac" -print0 | while IFS= read -r -d '' file; do
|
|
||||||
log "$page :: $wantedAlbumListSource :: $processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: Setting ARTIST/ALBUMARTIST tag to \"$lidarrArtistName\" :: $file"
|
|
||||||
metaflac --remove-tag=ALBUMARTIST "$file"
|
|
||||||
metaflac --remove-tag=ARTIST "$file"
|
|
||||||
metaflac --remove-tag=MUSICBRAINZ_ARTISTID "$file"
|
|
||||||
metaflac --remove-tag=MUSICBRAINZ_ALBUMARTISTID "$file"
|
|
||||||
metaflac --set-tag=ALBUMARTIST="$lidarrArtistName" "$file"
|
|
||||||
metaflac --set-tag=ARTIST="$lidarrArtistName" "$file"
|
|
||||||
metaflac --set-tag=MUSICBRAINZ_ARTISTID="$lidarrArtistForeignArtistId" "$file"
|
|
||||||
metaflac --set-tag=MUSICBRAINZ_ALBUMARTISTID="$lidarrArtistForeignArtistId" "$file"
|
|
||||||
done
|
|
||||||
|
|
||||||
# Tag with beets
|
# Tag with beets
|
||||||
if [ "$enableBeetsTagging" == "true" ]; then
|
if [ "$enableBeetsTagging" == "true" ]; then
|
||||||
if [ -f /config/extended/beets-error ]; then
|
if [ -f /config/extended/beets-error ]; then
|
||||||
|
|
Loading…
Reference in a new issue