|
|
@ -1,5 +1,5 @@
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
scriptVersion="1.0.027"
|
|
|
|
scriptVersion="1.0.028"
|
|
|
|
|
|
|
|
|
|
|
|
if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then
|
|
|
|
if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then
|
|
|
|
lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
|
|
|
|
lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
|
|
|
@ -689,6 +689,9 @@ for lidarrArtistId in $(echo $lidarrArtistIds); do
|
|
|
|
else
|
|
|
|
else
|
|
|
|
log "$processCount of $lidarrArtistIdsCount :: IMVDB :: $lidarrArtistName :: Processing $imvdbArtistVideoCount Videos!"
|
|
|
|
log "$processCount of $lidarrArtistIdsCount :: IMVDB :: $lidarrArtistName :: Processing $imvdbArtistVideoCount Videos!"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
find /config/extended/cache/imvdb -type f -empty -delete # delete empty files
|
|
|
|
|
|
|
|
|
|
|
|
imvdbProcessCount=0
|
|
|
|
imvdbProcessCount=0
|
|
|
|
for imvdbVideoData in $(ls /config/extended/cache/imvdb/$lidarrArtistMusicbrainzId--*.json); do
|
|
|
|
for imvdbVideoData in $(ls /config/extended/cache/imvdb/$lidarrArtistMusicbrainzId--*.json); do
|
|
|
|
imvdbProcessCount=$(( $imvdbProcessCount + 1 ))
|
|
|
|
imvdbProcessCount=$(( $imvdbProcessCount + 1 ))
|
|
|
@ -721,6 +724,7 @@ for lidarrArtistId in $(echo $lidarrArtistIds); do
|
|
|
|
sleep 1
|
|
|
|
sleep 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
find /config/extended/cache/imvdb -type f -empty -delete # delete empty files
|
|
|
|
if [ -z "$featuredArtistName" ]; then
|
|
|
|
if [ -z "$featuredArtistName" ]; then
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|