|
|
|
@ -39,12 +39,6 @@ if [ "$dlClientSource" = "tidal" ] || [ "$dlClientSource" = "both" ]; then
|
|
|
|
|
log "Exiting..."
|
|
|
|
|
exit 0
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ -d /config/extended/cache/tidal ]; then
|
|
|
|
|
log "TIDAL :: Purging video list cache..."
|
|
|
|
|
find /config/extended/cache/tidal -type f -name "*-videos.json" -delete
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
skipTidal=true
|
|
|
|
|
fi
|
|
|
|
@ -80,7 +74,7 @@ if [ "$skipTidal" = "false" ]; then
|
|
|
|
|
tidalArtistVideoCount=$(cat /config/extended/cache/tidal/$tidalArtistId-videos.json | jq -r '.items | sort_by(.duration) | .[].id' | wc -l)
|
|
|
|
|
if [ $tidalArtistVideoCount -ge 1 ]; then
|
|
|
|
|
for i in $(cat /config/extended/cache/tidal/$tidalArtistId-videos.json | jq -r '.items | sort_by(.duration) | .[].id'); do
|
|
|
|
|
tidalVideoTitle=$(cat e/config/xtended/cache/tidal/$tidalArtistId-videos.json | jq -r ".items[] | select(.id==$i) | .title")
|
|
|
|
|
tidalVideoTitle=$(cat /config/extended/cache/tidal/$tidalArtistId-videos.json | jq -r ".items[] | select(.id==$i) | .title")
|
|
|
|
|
if find "$lidarrArtistPath" -type f -iname "* - $tidalVideoTitle.*" | read; then
|
|
|
|
|
echo "$i :: $tidalVideoTitle :: Match"
|
|
|
|
|
matchedFile="$(find "$lidarrArtistPath" -type f -iname "* - $tidalVideoTitle.*")"
|
|
|
|
|