From 0b463f4e37174ca6c565373d4df45857b0f97f1d Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 21 Jun 2022 11:56:57 +0000 Subject: [PATCH] more fixes --- root/scripts/Plex_MusicVideos.bash | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/root/scripts/Plex_MusicVideos.bash b/root/scripts/Plex_MusicVideos.bash index 1a39c09..86ef9d9 100644 --- a/root/scripts/Plex_MusicVideos.bash +++ b/root/scripts/Plex_MusicVideos.bash @@ -38,13 +38,7 @@ if [ "$dlClientSource" = "tidal" ] || [ "$dlClientSource" = "both" ]; then log "TIDAL :: ERROR :: tidal-dl client not configured, please run the main script \"/config/extended/scripts/download.sh\" to configure the client" 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 - + 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.*")"