Add livgolf

This commit is contained in:
Nirvana
2026-04-20 14:43:34 +02:00
parent d4e152e4de
commit aa5d28fdc9
3 changed files with 3 additions and 3 deletions
@@ -227,7 +227,6 @@ class LivGolfAuthenticator(BaseAuthenticator):
raw_token = response_data.get("access_token", "")
device_id = response_data.get("device_id") or f"browser-{uuid.uuid4()}"
exp = _token_expires_at(raw_token) if raw_token else 0.0
issued = response_data.get("issued_at", time.time())
expires_in = response_data.get("expires_in", 0)
@@ -309,7 +309,7 @@ class LivGolfEventManager:
use_cdm=False,
cdm_type=None,
cdm=None,
cdm_mode=None,
cdm_mode="",
streaming_format=STREAMING_FORMAT_DASH,
content_type=CONTENT_TYPE_LIVE,
mode="live",
@@ -207,7 +207,8 @@ class LivGolfProvider(StreamingProvider):
) -> Optional[StreamingChannel]:
return None
def validate_credentials(self, credentials) -> bool:
@staticmethod
def validate_credentials() -> bool:
"""
Anonymous providers do not validate user credentials.
Return True so the base class does not block provider setup.