mirror of
https://github.com/fHDHR/fHDHR_NextPVR.git
synced 2025-12-06 09:36:59 -05:00
float channel numbers for matching
This commit is contained in:
parent
0a41d8897d
commit
1e98e30c9d
@ -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'])
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user