mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-19 17:47:40 +00:00
Add support for 'num' property in channel number extraction
This commit is contained in:
parent
f4e4fb1d13
commit
7f1bdd0129
1 changed files with 4 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue