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

Merge pull request #40 from deathbybandaid/dev

float channel numbers for matching
This commit is contained in:
Deathbybandaid 2020-10-21 15:48:29 -04:00 committed by GitHub
commit f3b9767758
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,13 @@ class EPG():
func_to_call = getattr(method_to_call, 'update_epg')
programguide = func_to_call()
for chan in list(programguide.keys()):
floatnum = str(float(chan))
programguide[floatnum] = programguide.pop(chan)
programguide[floatnum]["number"] = floatnum
programguide = OrderedDict(sorted(programguide.items()))
for cnum in programguide:
programguide[cnum]["listing"] = sorted(programguide[cnum]["listing"], key=lambda i: i['time_start'])