Skip to content

Commit

Permalink
Merge pull request #102 from Archmonger/add-ver-uri-param
Browse files Browse the repository at this point in the history
Add Sonarr version URI
  • Loading branch information
marksie1988 authored May 3, 2022
2 parents 149320e + a128d72 commit 5377128
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
issue-message: |
Hello @${{ github.actor }}, thank you for your interest in our work!
If this is a bug report, please provide screenshots and **minimum viable code to reproduce your issue**, otherwise we can not help you.{% endraw %}
If this is a bug report, please provide screenshots and **minimum viable code to reproduce your issue**, otherwise we can not help you.
6 changes: 3 additions & 3 deletions pyarr/radarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ class RadarrAPI(BaseArrAPI):
"""

def __init__(self, host_url: str, api_key: str):
"""Initialise Readarr API
"""Initialize the Radarr API.
Args:
host_url (str): URL for Readarr
api_key (str): API key for Readarr
host_url (str): URL for Radarr
api_key (str): API key for Radarr
"""

ver_uri = "/v3"
Expand Down
10 changes: 5 additions & 5 deletions pyarr/sonarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
class SonarrAPI(BaseArrAPI):
"""API wrapper for Sonarr endpoints."""

def __init__(self, host_url: str, api_key: str):
"""Initialise Readarr API
def __init__(self, host_url: str, api_key: str, ver_uri: str = ""):
"""Initialize the Sonarr API.
Args:
host_url (str): URL for Readarr
api_key (str): API key for Readarr
host_url (str): URL for Sonarr
api_key (str): API key for Sonarr
ver_uri (str): Version URI for Radarr. Defaults to None (empty string).
"""

ver_uri = ""
super().__init__(host_url, api_key, ver_uri)

def _series_json(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pyarr"
version = "3.1.1"
version = "3.1.2"
description = "Python client for Servarr API's (Sonarr, Radarr, Readarr)"
authors = ["Steven Marks <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 5377128

Please sign in to comment.