v1.0.2 - bug fix - enable notifications

pull/16/head
RandomNinjaAtk 3 years ago committed by GitHub
parent ca4801af01
commit a5c0a40030
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
lidarrRootFolderPath="$(dirname "$lidarr_artist_path")" lidarrRootFolderPath="$(dirname "$lidarr_artist_path")"
version=1.0.1 version=1.0.2
# auto-clean up log file to reduce space usage # auto-clean up log file to reduce space usage
if [ -f "/config/logs/PlexNotify.txt" ]; then if [ -f "/config/logs/PlexNotify.txt" ]; then
@ -58,7 +58,7 @@ for key in ${!plexKeys[@]}; do
plexKey="${plexKeys[$key]}" plexKey="${plexKeys[$key]}"
if echo "$plexLibraryData" | grep "\"@path\": \"$lidarrRootFolderPath" | read; then if echo "$plexLibraryData" | grep "\"@path\": \"$lidarrRootFolderPath" | read; then
plexFolderEncoded="$(jq -R -r @uri <<<"$lidarr_artist_path")" plexFolderEncoded="$(jq -R -r @uri <<<"$lidarr_artist_path")"
#curl -s "$plexUrl/library/sections/$plexlibrarykey/refresh?path=$plexFolderEncoded&X-Plex-Token=$plexToken" curl -s "$plexUrl/library/sections/$plexlibrarykey/refresh?path=$plexFolderEncoded&X-Plex-Token=$plexToken"
log "Plex Scan notification sent! ($lidarr_artist_path)" log "Plex Scan notification sent! ($lidarr_artist_path)"
fi fi
done done

Loading…
Cancel
Save