mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-28 12:36:42 +00:00
Fix channel issues that i have with m3u files comming form tvheaden.
And add tvg-chno tag for finding channel numbers.
This commit is contained in:
parent
418bf01449
commit
d61de87fff
1 changed files with 4 additions and 0 deletions
|
|
@ -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'])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue