From 740b2c8f6a764f2d064a76de20f7daabf1bfb1fb Mon Sep 17 00:00:00 2001 From: frankdpGH <60138601+frankdpGH@users.noreply.github.com> Date: Fri, 4 Sep 2026 09:52:39 +0200 Subject: [PATCH] Refactor start timestamp calculation in api.py Update timestamp calculation for livestream to handle timezone information. --- resources/lib/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/api.py b/resources/lib/api.py index 56ffa9dd..00c783a8 100644 --- a/resources/lib/api.py +++ b/resources/lib/api.py @@ -2866,7 +2866,8 @@ def convert_episode(episode, destination=None): channel = episode.get('brand') start_time = episode.get('status').get('text').get('small').split(' - ')[0] hours, minutes = map(int, start_time.split(':')) - start_ts = now.replace(hour=hours, minute=minutes, second=0, microsecond=0).timestamp() + dt = now.replace(hour=hours, minute=minutes, second=0, microsecond=0) + start_ts = dt.replace(tzinfo=None).timestamp() else: comp_id = episode.get('componentId', '').lstrip('#') decoded = b64decode(comp_id.encode('utf-8')).decode('utf-8')