mirror of
https://github.com/nirvana-7777/script.service.ultimate.git
synced 2026-10-04 06:52:34 +02:00
magentaeu: add header logging
This commit is contained in:
@@ -401,6 +401,16 @@ class MagentaEUEpgManager:
|
||||
merged: Dict[str, Any] = {}
|
||||
headers = self._guest_headers(flow="EPG", step="EPG_SCHEDULES")
|
||||
|
||||
# ✅ LOG THE FULL HEADERS (or at least the critical ones)
|
||||
logger.info(
|
||||
f"[MagentaEUEpgManager/{self._country}] "
|
||||
f"Making EPG request with headers: "
|
||||
f"device-id={headers.get('device-id')}, "
|
||||
f"session-id={headers.get('x-request-session-id')}, "
|
||||
f"txn-id={headers.get('x-txn-id')}, "
|
||||
f"x-tv-flow={headers.get('x-tv-flow')}"
|
||||
)
|
||||
|
||||
utc_date = self._ensure_tz(date).astimezone(timezone.utc)
|
||||
formatted = utc_date.strftime("%Y-%m-%d")
|
||||
|
||||
@@ -487,14 +497,6 @@ class MagentaEUEpgManager:
|
||||
)
|
||||
continue
|
||||
|
||||
# ✅ Log the critical headers for debugging
|
||||
logger.debug(
|
||||
f"[MagentaEUEpgManager/{self._country}] "
|
||||
f"device-id: {headers.get('device-id')}, "
|
||||
f"session-id: {headers.get('x-request-session-id')}, "
|
||||
f"txn-id: {headers.get('x-txn-id')}"
|
||||
)
|
||||
|
||||
return merged
|
||||
|
||||
def _fetch_program_details(self, program_id: str) -> Dict[str, Any]:
|
||||
|
||||
Reference in New Issue
Block a user