Skip to content

Commit

Permalink
Container failing when trying to add a movie #155
Browse files Browse the repository at this point in the history
  • Loading branch information
Waterboy1602 committed Mar 8, 2024
1 parent d29ee6f commit 831767c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/radarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'})
Expand Down

0 comments on commit 831767c

Please sign in to comment.