mirror of
https://github.com/fHDHR/fHDHR_NextPVR.git
synced 2025-12-06 08:56:57 -05:00
Improve Channel Creation Logic
This commit is contained in:
parent
1b13aedc5e
commit
d118ef7807
@ -12,6 +12,7 @@ def channel_sort(channel_list):
|
|||||||
"""Take a list of channel number strings and sort the Numbers and SubNumbers"""
|
"""Take a list of channel number strings and sort the Numbers and SubNumbers"""
|
||||||
chan_dict_list_split = {}
|
chan_dict_list_split = {}
|
||||||
for number in channel_list:
|
for number in channel_list:
|
||||||
|
if number and number not in ["None"]:
|
||||||
try:
|
try:
|
||||||
subnumber = number.split(".")[1]
|
subnumber = number.split(".")[1]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user