From d956cd2b75278bdcd41d931a3395115585583c84 Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Tue, 7 Jun 2022 10:49:17 +1200 Subject: [PATCH 1/2] Updated SiCKRAGE SSO URL (#1886) (#1887) Co-authored-by: echel0n --- core/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/__init__.py b/core/__init__.py index 90427a6e..63758540 100644 --- a/core/__init__.py +++ b/core/__init__.py @@ -125,7 +125,7 @@ ALL_FORKS = {k: None for k in set(list(itertools.chain.from_iterable([FORKS[x].k # SiCKRAGE OAuth2 SICKRAGE_OAUTH_CLIENT_ID = 'nzbtomedia' -SICKRAGE_OAUTH_TOKEN_URL = 'https://auth.sickrage.ca/auth/realms/sickrage/protocol/openid-connect/token' +SICKRAGE_OAUTH_TOKEN_URL = 'https://auth.sickrage.ca/realms/sickrage/protocol/openid-connect/token' # NZBGet Exit Codes NZBGET_POSTPROCESS_PAR_CHECK = 92 From c639fc1cf9aebf13e21cc090660368d660abc6eb Mon Sep 17 00:00:00 2001 From: Nick Austin Date: Thu, 4 Aug 2022 23:46:37 -0700 Subject: [PATCH 2/2] Switch to set for rem_id. --- core/auto_process/movies.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/auto_process/movies.py b/core/auto_process/movies.py index 5f20ec05..bfee550a 100644 --- a/core/auto_process/movies.py +++ b/core/auto_process/movies.py @@ -563,12 +563,12 @@ def get_release(base_url, imdb_id=None, download_id=None, release_id=None): # Narrow results by removing old releases by comparing their last_edit field if len(results) > 1: - rem_id = [] + rem_id = set() for id1, x1 in results.items(): for x2 in results.values(): try: if x2['last_edit'] > x1['last_edit']: - rem_id.append(id1) + rem_id.add(id1) except Exception: continue for id in rem_id: @@ -576,11 +576,11 @@ def get_release(base_url, imdb_id=None, download_id=None, release_id=None): # Search downloads on clients for a match to try and narrow our results down to 1 if len(results) > 1: - rem_id = [] + rem_id = set() for cur_id, x in results.items(): try: if not find_download(str(x['download_info']['downloader']).lower(), x['download_info']['id']): - rem_id.append(cur_id) + rem_id.add(cur_id) except Exception: continue for id in rem_id: