mirror of
https://github.com/nirvana-7777/script.service.ultimate.git
synced 2026-10-18 22:04:02 +02:00
hrti: correct epg/catchup hours
This commit is contained in:
@@ -74,9 +74,6 @@ def _wcf_date(epoch_seconds: int) -> str:
|
||||
|
||||
|
||||
class HRTiCatchupManager(CatchupManager):
|
||||
#: v1 EPG window is 2 days back. VERIFY the real nPVR retention on a device
|
||||
#: (oldest programme that still has a FileName) and adjust.
|
||||
CATCHUP_HOURS = 48
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
@@ -101,7 +98,7 @@ class HRTiCatchupManager(CatchupManager):
|
||||
# ------------------------------------------------------------------
|
||||
@property
|
||||
def catchup_window_hours(self) -> int:
|
||||
return self.CATCHUP_HOURS
|
||||
return self._epg.PAST_DAYS * 24
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
# Resolution: (channel, start_time) -> programme + FileName
|
||||
|
||||
@@ -52,8 +52,8 @@ class HRTiEpgManager(EpgManager):
|
||||
"""Manages HRTi EPG operations (GetProgramme / GetEpgDetails)."""
|
||||
|
||||
# EPG window (v1 values, kept): 2 days back, 7 days forward
|
||||
PAST_DAYS = 2
|
||||
FUTURE_DAYS = 7
|
||||
PAST_DAYS = 3 # was 2 (72 h back)
|
||||
FUTURE_DAYS = 2 # was 7 (48 h ahead)
|
||||
|
||||
# referer the web client uses on both EPG endpoints (v1 used "/tv")
|
||||
EPG_REFERER_PATH = "/live/programme"
|
||||
|
||||
@@ -8,10 +8,8 @@ content-id routing, manifest / DRM delegation, legacy surface) comes from
|
||||
ManagedProvider.
|
||||
|
||||
Capabilities: live channels + radio, VOD, EPG (native batch GetProgramme,
|
||||
per-programme GetEpgDetails enrichment; epg_window = (2, 7), v1 values
|
||||
kept). A future catchup manager would take the EPG manager as a
|
||||
keyword-only ``epg=`` extra (_init_managers builds epg before catchup, so
|
||||
``self.epg`` is available in _build_catchup).
|
||||
per-programme GetEpgDetails enrichment; epg_window = (3, 2).
|
||||
|
||||
"""
|
||||
|
||||
from typing import ClassVar, Dict, List, Optional
|
||||
|
||||
Reference in New Issue
Block a user