Skip to content

Commit

Permalink
Problem adding series at season selection #150 - Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Waterboy1602 committed Jan 22, 2024
1 parent d4a3a81 commit 6cfb1fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sonarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def getTags():

def createTag(tag):
data_json = {
"id": max([t["id"] for t in getTags()])+1,
"id": int(max([t["id"] for t in getTags()], default=0)+1),
"label": str(tag)
}
add = requests.post(commons.generateApiQuery("sonarr", "tag"), json=data_json, headers={'Content-Type': 'application/json'})
Expand Down

0 comments on commit 6cfb1fd

Please sign in to comment.