1.0.0025 - logging fix...

pull/6/head
RandomNinjaAtk 2 years ago committed by GitHub
parent 1abd86c66b
commit 3f3d94c583
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -36,7 +36,7 @@ Configuration () {
log "" log ""
sleep 2 sleep 2
log "############# $dockerTitle" log "############# $dockerTitle"
log "############# SCRIPT VERSION 1.0.0024" log "############# SCRIPT VERSION 1.0.0025"
log "############# DOCKER VERSION $dockerVersion" log "############# DOCKER VERSION $dockerVersion"
if [ -z $topLimit ]; then if [ -z $topLimit ]; then
@ -551,12 +551,13 @@ SearchProcess () {
if [ "$skipDeezer" = "false" ]; then if [ "$skipDeezer" = "false" ]; then
if [ -z "$deezerArtistUrl" ]; then if [ -z "$deezerArtistUrl" ]; then
log ":: $processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: DEEZER :: ERROR :: musicbrainz id: $lidarrArtistForeignArtistId is missing Tidal link, see: \"/config/logs/error/$lidarrArtistNameSanitized.log\" for more detail..." log ":: $processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: DEEZER :: ERROR :: musicbrainz id: $lidarrArtistForeignArtistId is missing Tidal link, see: \"/config/logs/deezer-arist-id-not-found.txt\" for more detail..."
if [ ! -d /config/extended/logs/error ]; then if cat "/config/logs/deezer-arist-id-not-found.txt" | grep "https://musicbrainz.org/artist/$lidarrArtistForeignArtistId/relationships" | read; then
mkdir -p /config/extended/logs/error sleep 0.01
fi else
if [ ! -f "/config/extended/logs/error/$lidarrArtistNameSanitized.log" ]; then echo "Update Musicbrainz Relationship Page: https://musicbrainz.org/artist/$lidarrArtistForeignArtistId/relationships for \"${lidarrArtistName}\" with Deezer Artist Link" >> "/config/logs/deezer-arist-id-not-found.txt"
echo "Update Musicbrainz Relationship Page: https://musicbrainz.org/artist/$lidarrArtistForeignArtistId/relationships for \"${lidarrArtistName}\" with Deezer Artist Link" >> "/config/logs/error/$lidarrArtistNameSanitized.log" chmod 666 "/config/logs/deezer-arist-id-not-found.txt"
chown abc:abc "/config/logs/deezer-arist-id-not-found.txt"
fi fi
skipDeezer=true skipDeezer=true
fi fi
@ -574,12 +575,13 @@ SearchProcess () {
if [ "$skipTidal" = "false" ]; then if [ "$skipTidal" = "false" ]; then
if [ -z "$tidalArtistUrl" ]; then if [ -z "$tidalArtistUrl" ]; then
log ":: $processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: TIDAL :: ERROR :: musicbrainz id: $lidarrArtistForeignArtistId is missing Tidal link, see: \"/config/logs/error/$lidarrArtistNameSanitized.log\" for more detail..." log ":: $processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: TIDAL :: ERROR :: musicbrainz id: $lidarrArtistForeignArtistId is missing Tidal link, see: \"/config/logs/tidal-arist-id-not-found.txt\" for more detail..."
if [ ! -d /config/extended/logs/error ]; then if cat "/config/logs/tidal-arist-id-not-found.txt" | grep "https://musicbrainz.org/artist/$lidarrArtistForeignArtistId/relationships" | read; then
mkdir -p /config/extended/logs/error sleep 0.01
fi else
if [ ! -f "/config/extended/logs/error/$lidarrArtistNameSanitized.log" ]; then echo "Update Musicbrainz Relationship Page: https://musicbrainz.org/artist/$lidarrArtistForeignArtistId/relationships for \"${lidarrArtistName}\" with Tidal Artist Link" >> "/config/logs/tidal-arist-id-not-found.txt"
echo "Update Musicbrainz Relationship Page: https://musicbrainz.org/artist/$lidarrArtistForeignArtistId/relationships for \"${lidarrArtistName}\" with Tidal Artist Link" >> "/config/logs/error/$lidarrArtistNameSanitized.log" chmod 666 "/config/logs/tidal-arist-id-not-found.txt"
chown abc:abc "/config/logs/tidal-arist-id-not-found.txt"
fi fi
skipTidal=true skipTidal=true
fi fi

Loading…
Cancel
Save