v1.0.007 - improve log output

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

@ -1,5 +1,5 @@
#!/usr/bin/env bash
scriptVersion="1.0.006"
scriptVersion="1.0.007"
arrEventType="$sonarr_eventtype"
arrItemId=$sonarr_series_id
tmdbApiKey="3b7751e3179f796565d88fdb2fcdf426"
@ -197,17 +197,17 @@ chmod 666 "/config/extended/extras/$tmdbId"
if [ ! -z "$plexToken" ]; then
# Always update plex if extra is downloaded
if [ "$updatePlex" == "true" ]; then
log "Using PlexNotify.bash to update Plex...."
log "$itemTitle :: Using PlexNotify.bash to update Plex...."
bash /config/extended/scripts/PlexNotify.bash "$itemPath"
exit
fi
# Do not notify plex if this script was triggered by the AutoExtras.bash and no Extras were downloaded
if [ "$autoScan" == "true" ]; then
log "Skipping plex notification, not needed...."
log "$itemTitle :: Skipping plex notification, not needed...."
exit
else
log "Using PlexNotify.bash to update Plex...."
log "$itemTitle :: Using PlexNotify.bash to update Plex...."
bash /config/extended/scripts/PlexNotify.bash "$itemPath"
exit
fi

Loading…
Cancel
Save