v1.2 - Simplify Plex Library folder verification grep...
#54 - Maybe this resolves it....?
This commit is contained in:
parent
42517a6ee4
commit
2892856885
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
scriptVersion="1.1"
|
scriptVersion="1.2"
|
||||||
notfidedBy="Sonarr"
|
notfidedBy="Sonarr"
|
||||||
arrRootFolderPath="$(dirname "$sonarr_series_path")"
|
arrRootFolderPath="$(dirname "$sonarr_series_path")"
|
||||||
arrFolderPath="$sonarr_series_path"
|
arrFolderPath="$sonarr_series_path"
|
||||||
|
@ -79,7 +79,7 @@ else
|
||||||
plexKeys=($(echo "$plexLibraries" | xq ".MediaContainer.Directory" | jq -r '."@key"'))
|
plexKeys=($(echo "$plexLibraries" | xq ".MediaContainer.Directory" | jq -r '."@key"'))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if echo "$plexLibraryData" | grep "\"@path\": \"$arrRootFolderPath" | read; then
|
if echo "$plexLibraryData" | grep "path" | grep "$arrRootFolderPath" | read; then
|
||||||
sleep 0.01
|
sleep 0.01
|
||||||
else
|
else
|
||||||
log "$notfidedBy :: ERROR: No Plex Library found containing path \"$arrRootFolderPath\""
|
log "$notfidedBy :: ERROR: No Plex Library found containing path \"$arrRootFolderPath\""
|
||||||
|
|
Loading…
Reference in a new issue