From 92a4d6801a336bd5e2ad542f6a7d5ffd790ac909 Mon Sep 17 00:00:00 2001 From: Archmonger <16909269+Archmonger@users.noreply.github.com> Date: Mon, 2 May 2022 21:59:56 -0700 Subject: [PATCH 1/2] Add Sonarr version URI --- pyarr/radarr.py | 6 +++--- pyarr/sonarr.py | 10 +++++----- pyproject.toml | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pyarr/radarr.py b/pyarr/radarr.py index 384c5d5..ef15bac 100644 --- a/pyarr/radarr.py +++ b/pyarr/radarr.py @@ -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" diff --git a/pyarr/sonarr.py b/pyarr/sonarr.py index ffd3482..933f69c 100644 --- a/pyarr/sonarr.py +++ b/pyarr/sonarr.py @@ -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( diff --git a/pyproject.toml b/pyproject.toml index a7ee6c3..a451467 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] license = "MIT" From a128d722ff3dc2af796d766e3102d191b280a58b Mon Sep 17 00:00:00 2001 From: Archmonger <16909269+Archmonger@users.noreply.github.com> Date: Mon, 2 May 2022 22:04:53 -0700 Subject: [PATCH 2/2] fix random string in welcome CI --- .github/workflows/greetings.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index d22ebff..0df62ca 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -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 %} \ No newline at end of file + If this is a bug report, please provide screenshots and **minimum viable code to reproduce your issue**, otherwise we can not help you. \ No newline at end of file