From 7936c2c92b4a38254506bf1a2521c2c2380f3c48 Mon Sep 17 00:00:00 2001 From: echel0n Date: Mon, 6 Jun 2022 15:43:13 -0700 Subject: [PATCH 1/3] Updated SiCKRAGE SSO URL (#1886) --- 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 566e98bc7887663d6bb3b792c799e920d23e0a9e Mon Sep 17 00:00:00 2001 From: Jingxuan He Date: Thu, 16 Jun 2022 21:46:51 +0200 Subject: [PATCH 2/3] Fix a bug about wrong order of function arguments (#1889) --- libs/common/mutagen/flac.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/common/mutagen/flac.py b/libs/common/mutagen/flac.py index fc351dd4..cfb7eaf8 100644 --- a/libs/common/mutagen/flac.py +++ b/libs/common/mutagen/flac.py @@ -281,7 +281,7 @@ class SeekPoint(tuple): """ def __new__(cls, first_sample, byte_offset, num_samples): - return super(cls, SeekPoint).__new__( + return super(SeekPoint, cls).__new__( cls, (first_sample, byte_offset, num_samples)) first_sample = property(lambda self: self[0]) From a0bccb54cc0fddae0a7a6e92931d37fe641795eb Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Fri, 15 Jul 2022 09:02:12 +1200 Subject: [PATCH 3/3] Req lan1 (#1890) * Multiple Req_Lan --- core/__init__.py | 2 +- core/transcoder.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/__init__.py b/core/__init__.py index 63758540..40006ffe 100644 --- a/core/__init__.py +++ b/core/__init__.py @@ -398,7 +398,7 @@ def configure_general(): FFMPEG_PATH = CFG['General']['ffmpeg_path'] SYS_PATH = CFG['General']['sys_path'] CHECK_MEDIA = int(CFG['General']['check_media']) - REQUIRE_LAN = CFG['General']['require_lan'] or None + REQUIRE_LAN = CFG['General']['require_lan'].split(',') or None SAFE_MODE = int(CFG['General']['safe_mode']) NOEXTRACTFAILED = int(CFG['General']['no_extract_failed']) diff --git a/core/transcoder.py b/core/transcoder.py index e8e83c9f..394f4ec1 100644 --- a/core/transcoder.py +++ b/core/transcoder.py @@ -64,7 +64,7 @@ def is_video_good(videofile, status, require_lan=None): video_streams = [item for item in video_details['streams'] if item['codec_type'] == 'video'] audio_streams = [item for item in video_details['streams'] if item['codec_type'] == 'audio'] if require_lan: - valid_audio = [item for item in audio_streams if 'tags' in item and 'language' in item['tags'] and item['tags']['language'] == require_lan ] + valid_audio = [item for item in audio_streams if 'tags' in item and 'language' in item['tags'] and item['tags']['language'] in require_lan ] else: valid_audio = audio_streams if len(video_streams) > 0 and len(valid_audio) > 0: