From b707415f2f42f0ba2527fda790ee3eea10506069 Mon Sep 17 00:00:00 2001 From: Nirvana Date: Thu, 11 Jun 2026 12:50:43 +0200 Subject: [PATCH] magentaeu catchup --- lib/streaming_providers/providers/magentaeu/provider.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/streaming_providers/providers/magentaeu/provider.py b/lib/streaming_providers/providers/magentaeu/provider.py index d3c25c5..42db80c 100644 --- a/lib/streaming_providers/providers/magentaeu/provider.py +++ b/lib/streaming_providers/providers/magentaeu/provider.py @@ -393,8 +393,10 @@ class MagentaEUProvider(StreamingProvider): return None try: - start_time = int(start_time) if start_time is not None else None - end_time = int(end_time) if end_time is not None else None + if isinstance(start_time, str): + start_time = int(start_time) + if isinstance(end_time, str): + end_time = int(end_time) # Convert Unix timestamps to UTC format: YYYYMMDDTHHMMSS start_str = datetime.datetime.utcfromtimestamp(start_time).strftime("%Y%m%dT%H%M%S")