mirror of
https://github.com/nirvana-7777/script.service.ultimate.git
synced 2026-09-19 23:52:10 +02:00
Add livgolf
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user