v1.0.234 - Skip processing albums by an artist, that hasn't had it's videos processed yet...

If video script is enabled, the artist must already be processed for videos for the albums to begin downloading, this is to allow for seamless integration with Plex...
pull/60/head
RandomNinjaAtk 2 years ago committed by GitHub
parent 48ba79b437
commit 8de859a692
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,5 @@
#!/usr/bin/env bash
scriptVersion="1.0.232"
scriptVersion="1.0.234"
if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then
lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
if [ "$lidarrUrlBase" = "null" ]; then
@ -1050,6 +1050,19 @@ SearchProcess () {
currentDate="$(date "+%F")"
currentDateClean="$(echo "$currentDate" | sed -e "s%[^[:digit:]]%%g")"
if [ "$enableVideoScript" == "true" ]; then
if [ -d /config/extended/logs/video/complete ]; then
lidarrArtistVideoFolder="$(echo "$lidarrArtistFolder" | sed "s/ (.*)$//g" | sed "s/\.$//g")" # Plex Sanitization, remove disambiguation
if [ -f "/config/extended/logs/video/complete/$lidarrArtistVideoFolder" ]; then
log "$processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: Skipping until all videos are processed for the artist..."
continue
fi
else
log "$processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: Skipping until all videos are processed for the artist..."
continue
fi
fi
if [[ ${currentDateClean} -gt ${lidarrAlbumReleaseDateClean} ]]; then
log "$processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: Starting Search..."
else

Loading…
Cancel
Save