Add check interval in extended.conf.

This commit is contained in:
hockeygoalie35 2024-02-07 22:59:59 -05:00
parent 32c8923955
commit 7cfd44f828
2 changed files with 10 additions and 5 deletions

View file

@ -1,8 +1,11 @@
#!/usr/bin/with-contenv bash
scriptVersion="0.1"
scriptVersion="0.5"
scriptName="ARLChecker"
### Import Settings
source /config/extended.conf
echo Starting ARL Token Check...
python /custom-services.d/python/ARLChecker.py -c
echo ARL Token Check Complete. Sleeping for 24hrs...
sleep 1m
sleep "$arlUpdateInterval"

View file

@ -73,7 +73,9 @@ plexUrl="" # ONLY used if PlexNotify.bash is used, example: http://x.x.x.x:324
plexToken="" # ONLY used if PlexNotify.bash is used
##### DEEZER ARL UPDATE SCRIPT OPTIONALS
telegramBotEnable="false"
arlUpdateInterval='1m' # Interval to check ARL Validity (default 24 hours). Reboot container after changing. s = seconds, m = minutes, h = hours, d = days
telegramBotEnable="false" # Enable/Disable Telegram Bot to notify if ARL expires. Otherwise check text file in custom-services.d/python for status.
telegramBotToken="" # Get token from BotFather during bot creation. If you use a notify channel for Lidarr, you can probably use the same bot, as this script only takes temporary control.
telegramUserChatID="" # Get your userid by chatting: t.me/userinfobot