From d8661c5d7185923e11615e2d74a0bba83507512a Mon Sep 17 00:00:00 2001 From: Nirvana Date: Thu, 11 Jun 2026 10:04:43 +0200 Subject: [PATCH] catchup window from channels --- routes/streams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/streams.py b/routes/streams.py index 22abfa9..b06acd0 100644 --- a/routes/streams.py +++ b/routes/streams.py @@ -705,7 +705,7 @@ def setup_stream_routes(app, manager, service): channels = manager.get_channels(provider_name=provider, fetch_manifests=False) channel_obj = next((c for c in channels if c.channel_id == channel_id), None) - catchup_hours = getattr(channel_obj, "catchup_window", 0) if channel_obj else 0 + catchup_hours = getattr(channel_obj, "catchup_hours", 0) if channel_obj else 0 if catchup_hours == 0: response.status = 400 return {"error": f'Catchup not supported for provider "{provider}"'}