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
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$autoScan" == "true" ]; then
|
# Check for cookies file
|
||||||
if [ ! -z "$2" ]; then
|
if [ -f /config/cookies.txt ]; then
|
||||||
cookiesFile="$2"
|
cookiesFile="/config/cookies.txt"
|
||||||
else
|
log "Cookies File Found!"
|
||||||
cookiesFile=""
|
else
|
||||||
fi
|
log "Cookies File Not Found!"
|
||||||
else
|
cookiesFile=""
|
||||||
if find /config -type f -iname "cookies.txt" | read; then
|
fi
|
||||||
cookiesFile="$(find /config -type f -iname "cookies.txt" | head -n1)"
|
|
||||||
log "Cookies File Found!"
|
|
||||||
else
|
|
||||||
log "Cookies File Not Found!"
|
|
||||||
cookiesFile=""
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
arrItemData=$(curl -s "$arrUrl/api/v3/movie/$arrItemId?apikey=$arrApiKey")
|
arrItemData=$(curl -s "$arrUrl/api/v3/movie/$arrItemId?apikey=$arrApiKey")
|
||||||
itemTitle=$(echo "$arrItemData" | jq -r .title)
|
itemTitle=$(echo "$arrItemData" | jq -r .title)
|
||||||
|
|
Loading…
Reference in a new issue