From 831767c8fd15df44b24dd8e438c4bcd9d2947dc3 Mon Sep 17 00:00:00 2001 From: Wannes Date: Fri, 8 Mar 2024 18:42:18 +0100 Subject: [PATCH] Container failing when trying to add a movie #155 --- src/radarr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/radarr.py b/src/radarr.py index 5a1dd23..76d5427 100644 --- a/src/radarr.py +++ b/src/radarr.py @@ -144,7 +144,7 @@ def getTags(): def createTag(tag): data_json = { - "id": max([t["id"] for t in getTags()])+1, + "id": max([t["id"] for t in getTags()], default=0)+1, "label": str(tag) } add = requests.post(commons.generateApiQuery("radarr", "tag"), json=data_json, headers={'Content-Type': 'application/json'})