restructure epg

This commit is contained in:
Nirvana
2026-06-17 11:39:56 +02:00
parent 1c836eea95
commit 403f9850f8
@@ -395,17 +395,17 @@ class MagentaEUEpgManager:
return headers
def _fetch_day_schedules(self, date: datetime) -> Dict[str, Any]:
"""Fetch all 6-hour schedule blocks for *date*."""
"""Fetch all 3-hour schedule blocks for *date*."""
merged: Dict[str, Any] = {}
headers = self._guest_headers(flow="EPG", step="EPG_SCHEDULES")
formatted = date.strftime("%Y-%m-%d")
for hour_offset in range(0, 24, 6):
for hour_offset in range(0, 24, 3):
url = (
f"{self._bifrost_url}/epg/channel/schedules"
f"?date={formatted}"
f"&hour_offset={hour_offset}"
f"&hour_range=6"
f"&hour_range=3"
f"&channelMap_id="
f"&filler=true"
f"&app_language={self._app_language}"