From d568bc9b693c179d01d99923d4f3a91fe6ec636a Mon Sep 17 00:00:00 2001 From: zakary Date: Mon, 8 Jan 2024 17:21:28 -0600 Subject: [PATCH 1/3] fix(cat): cat parameter not setting needed ids properly potential fix for bug noted in #7 requires testing to confirm this is the cause --- retraktarr/api/trakt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/retraktarr/api/trakt.py b/retraktarr/api/trakt.py index f8c579c..c55255d 100644 --- a/retraktarr/api/trakt.py +++ b/retraktarr/api/trakt.py @@ -352,7 +352,8 @@ def del_from_list( } else: needed_ids = set(arr_ids) - + else: + needed_ids = set(arr_ids) # does some calculations on what the end list count would be # compares to your trakt list limits if ( From efcbeb3af3ce17054ed7e7341f7b01201ba09f83 Mon Sep 17 00:00:00 2001 From: zakary Date: Fri, 12 Jan 2024 15:46:24 -0600 Subject: [PATCH 2/3] fix(trakt/username): restrict to alphanumeric usernames addresses a bug that needs further investigation returning 405 when non-alphanumeric usernames are provided to trakt's api #7 --- retraktarr/config.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/retraktarr/config.py b/retraktarr/config.py index 0ae535f..1900246 100644 --- a/retraktarr/config.py +++ b/retraktarr/config.py @@ -50,6 +50,19 @@ def __init__(self, config_file): else: try: self.conf.read(config_file) + # checks for alphanumeric usernames + if ( + bool( + re.compile(r"^[a-zA-Z0-9]+$").match( + self.conf.get("Trakt", "username") + ) + ) + is False + ): + print( + "Error occurred while reading the configuration file:\nOnly alphanumeric usernames are supported currently." + ) + sys.exit(1) except configparser.Error as error: print(f"Error occurred while reading the configuration file: {error}") sys.exit(1) From daf7f28440c56b0805a923715d34088bcd9a912f Mon Sep 17 00:00:00 2001 From: zakary Date: Fri, 12 Jan 2024 15:49:29 -0600 Subject: [PATCH 3/3] bump to v1.0.5 --- retraktarr/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retraktarr/VERSION b/retraktarr/VERSION index a6a3a43..1464c52 100644 --- a/retraktarr/VERSION +++ b/retraktarr/VERSION @@ -1 +1 @@ -1.0.4 \ No newline at end of file +1.0.5 \ No newline at end of file