From 93465c60302e7a3742f6359ce4d978d063a58c98 Mon Sep 17 00:00:00 2001 From: Nirvana Date: Fri, 24 Apr 2026 13:11:10 +0200 Subject: [PATCH] Prepare RTLPlus for new streaming prov --- .../providers/rtlplus/auth.py | 18 +++++++++++++++--- .../providers/rtlplus/channel_manager.py | 2 +- .../providers/rtlplus/constants.py | 1 + 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/lib/streaming_providers/providers/rtlplus/auth.py b/lib/streaming_providers/providers/rtlplus/auth.py index e7c160c..7a4589c 100644 --- a/lib/streaming_providers/providers/rtlplus/auth.py +++ b/lib/streaming_providers/providers/rtlplus/auth.py @@ -59,7 +59,7 @@ class RTLPlusAuthenticator(BaseOAuth2Authenticator): @property def oauth_client_id(self) -> str: - return self._get_client_id() + return RTLPlusDefaults.BEDROCK_CLIENT_ID # "bedrock-m6group_web" @property def oauth_scope(self) -> str: @@ -67,7 +67,13 @@ class RTLPlusAuthenticator(BaseOAuth2Authenticator): @property def oauth_redirect_uri(self) -> str: - return self.config.base_website + # Used in the authorize step + return f"{self.config.beta_website}tv-programm" + + @property + def oauth_token_redirect_uri(self) -> str: + # Used in the token exchange step + return f"{self.config.beta_website}silent-sso-iframe.html" @property def config(self) -> RTLPlusConfig: @@ -155,7 +161,13 @@ class RTLPlusAuthenticator(BaseOAuth2Authenticator): password=password, form_selector_pattern=r'