Update Plex_MusicVideos.bash

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

@ -1,9 +1,5 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
lidarrArtistId=$lidarr_artist_id lidarrArtistId=$lidarr_artist_id
if [ "$lidarr_eventtype" == "Test" ]; then
log "Tested"
exit 0
fi
# auto-clean up log file to reduce space usage # auto-clean up log file to reduce space usage
if [ -f "/config/logs/Plex_MusicVideos.txt" ]; then if [ -f "/config/logs/Plex_MusicVideos.txt" ]; then
@ -17,6 +13,11 @@ log () {
echo $m_time" :: "$1 echo $m_time" :: "$1
} }
if [ "$lidarr_eventtype" == "Test" ]; then
log "Tested Successfully"
exit 0
fi
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=""

Loading…
Cancel
Save