Update Extras.bash
This commit is contained in:
parent
37d315eb18
commit
94837219f2
1 changed files with 8 additions and 15 deletions
|
@ -63,21 +63,14 @@ if [ "$enableExtras" != "true" ]; then
|
|||
exit
|
||||
fi
|
||||
|
||||
if [ "$autoScan" == "true" ]; then
|
||||
if [ ! -z "$2" ]; then
|
||||
cookiesFile="$2"
|
||||
else
|
||||
cookiesFile=""
|
||||
fi
|
||||
else
|
||||
if find /config -type f -iname "cookies.txt" | read; then
|
||||
cookiesFile="$(find /config -type f -iname "cookies.txt" | head -n1)"
|
||||
log "Cookies File Found!"
|
||||
else
|
||||
log "Cookies File Not Found!"
|
||||
cookiesFile=""
|
||||
fi
|
||||
fi
|
||||
# Check for cookies file
|
||||
if [ -f /config/cookies.txt ]; then
|
||||
cookiesFile="/config/cookies.txt"
|
||||
log "Cookies File Found!"
|
||||
else
|
||||
log "Cookies File Not Found!"
|
||||
cookiesFile=""
|
||||
fi
|
||||
|
||||
arrItemData=$(curl -s "$arrUrl/api/v3/movie/$arrItemId?apikey=$arrApiKey")
|
||||
itemTitle=$(echo "$arrItemData" | jq -r .title)
|
||||
|
|
Loading…
Reference in a new issue