mirror of
https://github.com/fHDHR/fHDHR_NextPVR.git
synced 2025-12-06 13:06: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')
|
func_to_call = getattr(method_to_call, 'update_epg')
|
||||||
programguide = func_to_call()
|
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()))
|
programguide = OrderedDict(sorted(programguide.items()))
|
||||||
|
|
||||||
for cnum in programguide:
|
for cnum in programguide:
|
||||||
programguide[cnum]["listing"] = sorted(programguide[cnum]["listing"], key=lambda i: i['time_start'])
|
programguide[cnum]["listing"] = sorted(programguide[cnum]["listing"], key=lambda i: i['time_start'])
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user