From 65177c4a2dd670bf876273f649a0c2d160b52881 Mon Sep 17 00:00:00 2001 From: mtrogman Date: Sat, 29 Jun 2024 22:16:45 -0400 Subject: [PATCH 1/3] moved api key out of header --- regrabarr.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/regrabarr.py b/regrabarr.py index 8a53cbf..416c25f 100644 --- a/regrabarr.py +++ b/regrabarr.py @@ -30,10 +30,10 @@ def get_config(file): session = requests.Session() def get_root_folders(base_url, api_key): - url = f"{base_url}/api/v3/rootfolder" - headers = {'X-Api-Key': api_key} + url = f"{base_url}/rootfolder?apikey={api_key}" try: - response = session.get(url, headers=headers) + response = session.get(url) + print(response) response.raise_for_status() return response.json() except requests.exceptions.RequestException as e: From 601827ceeda8a9f5f96efc4f812a1e93e80d40ae Mon Sep 17 00:00:00 2001 From: mtrogman Date: Sun, 30 Jun 2024 02:17:06 +0000 Subject: [PATCH 2/3] Bump version to 1.4.1 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 88c5fb8..347f583 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.4.0 +1.4.1 From 5a5adce0405c7647d4bf39d66353a71bd4d356ad Mon Sep 17 00:00:00 2001 From: mtrogman Date: Sun, 30 Jun 2024 02:17:26 +0000 Subject: [PATCH 3/3] Bump version to 1.5.0 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 347f583..bc80560 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.4.1 +1.5.0