From 7f1bdd01291544f51dfc92baee33e325e8dfd16f Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Sat, 21 Jun 2025 14:00:41 -0500 Subject: [PATCH] Add support for 'num' property in channel number extraction --- apps/channels/api_views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/channels/api_views.py b/apps/channels/api_views.py index 3ffb98af..0106ffd5 100644 --- a/apps/channels/api_views.py +++ b/apps/channels/api_views.py @@ -401,6 +401,8 @@ class ChannelViewSet(viewsets.ModelViewSet): channel_number = float(stream_custom_props["tvg-chno"]) elif "channel-number" in stream_custom_props: channel_number = float(stream_custom_props["channel-number"]) + elif "num" in stream_custom_props: + channel_number = float(stream_custom_props["num"]) if channel_number is None: provided_number = request.data.get("channel_number") @@ -546,6 +548,8 @@ class ChannelViewSet(viewsets.ModelViewSet): channel_number = float(stream_custom_props["tvg-chno"]) elif "channel-number" in stream_custom_props: channel_number = float(stream_custom_props["channel-number"]) + elif "num" in stream_custom_props: + channel_number = float(stream_custom_props["num"]) # Get the tvc_guide_stationid from custom properties if it exists tvc_guide_stationid = None if "tvc-guide-stationid" in stream_custom_props: