From f89313ce73227fb813fe5c7ef98db587cf5864ff Mon Sep 17 00:00:00 2001 From: westsurname <155189104+westsurname@users.noreply.github.com> Date: Tue, 17 Jun 2025 20:02:35 -0400 Subject: [PATCH 1/3] Update repair to only report on incomplete season packs when flag is set --- repair.py | 45 +++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/repair.py b/repair.py index 81dfd4c..d95e035 100644 --- a/repair.py +++ b/repair.py @@ -100,29 +100,28 @@ def main(): print("Broken items:") [print(item) for item in brokenItems] print() - if args.dry_run or args.no_confirm or input("Do you want to delete and re-grab? (y/n): ").lower() == 'y': - if not args.dry_run: - discordUpdate(f"[{args.mode}] Repairing {media.title}: {childId}") - if args.mode == 'symlink': - print("Deleting files:") - [print(item.path) for item in childItems] - results = arr.deleteFiles(childItems) - print("Re-monitoring") - media = arr.get(media.id) - media.setChildMonitored(childId, False) - arr.put(media) - media.setChildMonitored(childId, True) - arr.put(media) - print("Searching for new files") - results = arr.automaticSearch(media, childId) - print(results) - - if repairIntervalSeconds > 0: - time.sleep(repairIntervalSeconds) - else: + if not args.dry_run and (args.no_confirm or input("Do you want to delete and re-grab? (y/n): ").lower() == 'y'): + discordUpdate(f"[{args.mode}] Repairing {media.title}: {childId}") + if args.mode == 'symlink': + print("Deleting files:") + [print(item.path) for item in childItems] + results = arr.deleteFiles(childItems) + print("Re-monitoring") + media = arr.get(media.id) + media.setChildMonitored(childId, False) + arr.put(media) + media.setChildMonitored(childId, True) + arr.put(media) + print("Searching for new files") + results = arr.automaticSearch(media, childId) + print(results) + + if repairIntervalSeconds > 0: + time.sleep(repairIntervalSeconds) + elif not args.dry_run: print("Skipping") print() - elif args.mode == 'symlink': + elif args.season_packs and args.mode == 'symlink': realPaths = [os.path.realpath(item.path) for item in childItems] parentFolders = set(os.path.dirname(path) for path in realPaths) if childId in media.fullyAvailableChildrenIds and len(parentFolders) > 1: @@ -131,13 +130,15 @@ def main(): print("Non-season-pack folders:") [print(parentFolder) for parentFolder in parentFolders] print() - if args.season_packs: + if not args.dry_run and (args.no_confirm or input("Do you want to initiate a search for a season-pack? (y/n): ").lower() == 'y'): print("Searching for season-pack") results = arr.automaticSearch(media, childId) print(results) if repairIntervalSeconds > 0: time.sleep(repairIntervalSeconds) + elif not args.dry_run: + print("Skipping") except Exception: e = traceback.format_exc() From 1adc492e828385dc0debb53af0b92eaa14ecf1a2 Mon Sep 17 00:00:00 2001 From: westsurname <155189104+westsurname@users.noreply.github.com> Date: Tue, 17 Jun 2025 20:09:06 -0400 Subject: [PATCH 2/3] Fix environs requirement --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index d877fce..3a5b997 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -environs==9.5.0 #all +environs==14.2.0 #all discord_webhook==1.3.0 #all requests==2.28.1 #all @@ -10,4 +10,4 @@ declxml==1.1.3 #plex_request Werkzeug==3.0.1 #plex_authentication, blackhole flask==3.0.2 #plex_authentication, plex_request -gunicorn==22.0.0 #plex_authentication, plex_request \ No newline at end of file +gunicorn==22.0.0 #plex_authentication, plex_request From 0b2e1ed51d68da2a0f9f624061dab19b6d91979e Mon Sep 17 00:00:00 2001 From: westsurname <155189104+westsurname@users.noreply.github.com> Date: Tue, 17 Jun 2025 21:22:40 -0400 Subject: [PATCH 3/3] Remove arm/v7 for compatibility reasons --- .github/workflows/docker-build-push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml index 57665a5..90d4b9d 100644 --- a/.github/workflows/docker-build-push.yml +++ b/.github/workflows/docker-build-push.yml @@ -62,7 +62,7 @@ jobs: with: context: . file: ${{ matrix.dockerfile }} - platforms: linux/amd64,linux/arm,linux/arm64 + platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}