1
0
mirror of https://github.com/fHDHR/fHDHR_NextPVR.git synced 2025-12-06 10:26:57 -05:00

Merge pull request #146 from deathbybandaid/dev

Improve Channel Creation Logic
This commit is contained in:
Deathbybandaid 2021-01-22 11:40:33 -05:00 committed by GitHub
commit cbe8deb965
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 10 deletions

View File

@ -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: