Skip to content

Commit

Permalink
Merge pull request #69 from mtrogman/DRF-3
Browse files Browse the repository at this point in the history
Drf 3
  • Loading branch information
mtrogman authored Jun 30, 2024
2 parents 2d13209 + 5a5adce commit 581bb5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.0
1.5.0
6 changes: 3 additions & 3 deletions regrabarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 581bb5f

Please sign in to comment.