From 4dc22840243596a78057a380d6159672d8f7862f Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Mon, 12 Feb 2024 19:40:34 +0000 Subject: [PATCH 1/4] Update readme.md --- lidarr/readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 From 5afd750c76b071a7aef532799531bcc0f97102e8 Mon Sep 17 00:00:00 2001 From: hockeygoalie35 Date: Mon, 12 Feb 2024 21:17:54 -0500 Subject: [PATCH 2/4] Pull version from script, rather than define in .py --- lidarr/ARLChecker | 2 +- lidarr/python/ARLChecker.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) 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..4485b20 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(os.path.join(os.pardir, "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( From 13a5bccc001b4f24ad46bc56adbd814cd73b8f04 Mon Sep 17 00:00:00 2001 From: hockeygoalie35 Date: Mon, 12 Feb 2024 21:49:13 -0500 Subject: [PATCH 3/4] Set script version-lookup path to match docker structure. --- lidarr/python/ARLChecker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lidarr/python/ARLChecker.py b/lidarr/python/ARLChecker.py index 4485b20..2f0d84b 100644 --- a/lidarr/python/ARLChecker.py +++ b/lidarr/python/ARLChecker.py @@ -13,7 +13,7 @@ from datetime import datetime # Pull script version from previous VERSION = '0.0.0' -with open(os.path.join(os.pardir, "ARLChecker"), "r") as r: +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('"','') From 4e96a479622e189d394079d948fee22b1316a96a Mon Sep 17 00:00:00 2001 From: hockeygoalie35 Date: Mon, 12 Feb 2024 21:51:23 -0500 Subject: [PATCH 4/4] Set script version-lookup path to match docker structure. --- lidarr/python/ARLChecker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lidarr/python/ARLChecker.py b/lidarr/python/ARLChecker.py index 2f0d84b..a34eb35 100644 --- a/lidarr/python/ARLChecker.py +++ b/lidarr/python/ARLChecker.py @@ -13,7 +13,7 @@ from datetime import datetime # Pull script version from previous VERSION = '0.0.0' -with open("./custom-services.d/ARLChecker", "r") as r: +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('"','')