Skip to content

Commit 90d7dae

Browse files
committed
plexnotify: update logic to only update specific file path
1 parent f6a7ce7 commit 90d7dae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sonarr/PlexNotify.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ for key in ${!plexKeys[@]}; do
9191
plexKey="${plexKeys[$key]}"
9292
plexKeyData="$(echo "$plexLibraryData" | jq -r "select(.\"@key\"==\"$plexKey\")")"
9393
if echo "$plexKeyData" | grep "path" | grep "$arrRootFolderPath" | read; then
94-
plexFolderEncoded="$(jq -R -r @uri <<<"$arrFolderPath")"
95-
curl -s "$plexUrl/library/sections/$plexKey/refresh?path=$plexFolderEncoded&X-Plex-Token=$plexToken"
96-
log "$notfidedBy :: Plex Scan notification sent! ($arrFolderPath)"
94+
plexFileEncoded="$(jq -R -r @uri <<<"$sonarr_episodefile_path")"
95+
curl -s "$plexUrl/library/sections/$plexKey/refresh?path=$plexFileEncoded&X-Plex-Token=$plexToken"
96+
log "$notfidedBy :: Plex Scan notification sent! ($sonarr_episodefile_path)"
9797
fi
9898
done
9999

0 commit comments

Comments
 (0)