diff --git a/lidarr/ARLChecker b/lidarr/ARLChecker index 962c7ea..969944b 100644 --- a/lidarr/ARLChecker +++ b/lidarr/ARLChecker @@ -1,6 +1,6 @@ #!/usr/bin/with-contenv bash ### Default values -scriptVersion="1.3" +scriptVersion="1.4.0" scriptName="ARLChecker" sleepInterval='24h' ### Import Settings diff --git a/lidarr/python/ARLChecker.py b/lidarr/python/ARLChecker.py index 48b6c5c..a34eb35 100644 --- a/lidarr/python/ARLChecker.py +++ b/lidarr/python/ARLChecker.py @@ -11,8 +11,13 @@ import logging import os from datetime import datetime +# Pull script version from previous +VERSION = '0.0.0' +with open("/custom-services.d/ARLChecker", "r") as r: + for line in r: + if 'scriptVersion' in line: + VERSION = re.search(r'"([A-Za-z0-9_\./\\-]*)"', line)[0].replace('"','') -VERSION = 0.1 # Logging Setup logging.basicConfig( diff --git a/lidarr/readme.md b/lidarr/readme.md index bc0eb96..158c3a7 100644 --- a/lidarr/readme.md +++ b/lidarr/readme.md @@ -8,11 +8,11 @@ Container: 1. Add 2 volumes to your container `/custom-services.d` and `/custom-cont-init.d` (do not map to the same local folder...) - Docker Run Example: - `-v /path/to/preferred/local/folder-01:/custom-services.d` + Docker Run Example:
+ `-v /path/to/preferred/local/folder-01:/custom-services.d`
`-v /path/to/preferred/local/folder-02:/custom-cont-init.d` 2. Download the [script_init.bash](https://github.com/RandomNinjaAtk/arr-scripts/blob/main/lidarr/scripts_init.bash) ([Download Link](https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/scripts_init.bash)) and place it into the following folder: - `-v /path/to/preferred/local/folder-02:/custom-cont-init.d` + `/custom-cont-init.d` 3. Start your container and wait for the application to load 4. Optional: Customize the configuration by modifying the following file `/config/extended.conf` 5. Restart the container