diff --git a/apps/channels/api_views.py b/apps/channels/api_views.py index ccd942d6..36a5b0e1 100644 --- a/apps/channels/api_views.py +++ b/apps/channels/api_views.py @@ -267,6 +267,8 @@ class ChannelViewSet(viewsets.ModelViewSet): channel_number = None if 'tv-chno' in stream_custom_props: channel_number = int(stream_custom_props['tv-chno']) + elif 'tvg-chno' in stream_custom_props: + channel_number = int(stream_custom_props['tvg-chno']) elif 'channel-number' in stream_custom_props: channel_number = int(stream_custom_props['channel-number']) @@ -388,6 +390,8 @@ class ChannelViewSet(viewsets.ModelViewSet): channel_number = None if 'tv-chno' in stream_custom_props: channel_number = int(stream_custom_props['tv-chno']) + elif 'tvg-chno' in stream_custom_props: + channel_number = int(stream_custom_props['tvg-chno']) elif 'channel-number' in stream_custom_props: channel_number = int(stream_custom_props['channel-number'])