mirror of
https://github.com/fHDHR/fHDHR_NextPVR.git
synced 2025-12-06 11:16:58 -05:00
Verify Scheduling Order
This commit is contained in:
parent
3a151054b4
commit
aaedc7542f
@ -85,6 +85,9 @@ class EmptyEPG():
|
||||
|
||||
programguide[str(c["number"])]["listing"].append(clean_prog_dict)
|
||||
|
||||
for cnum in programguide:
|
||||
programguide[cnum]["listing"] = sorted(programguide[cnum]["listing"], key=lambda i: i['time_start'])
|
||||
|
||||
self.epg_cache = programguide
|
||||
with open(self.epg_cache_file, 'w') as epgfile:
|
||||
epgfile.write(json.dumps(programguide, indent=4))
|
||||
|
||||
@ -198,6 +198,9 @@ class ZapEPG():
|
||||
|
||||
programguide[str(cdict["channelNo"])]["listing"].append(clean_prog_dict)
|
||||
|
||||
for cnum in programguide:
|
||||
programguide[cnum]["listing"] = sorted(programguide[cnum]["listing"], key=lambda i: i['time_start'])
|
||||
|
||||
self.epg_cache = programguide
|
||||
with open(self.epg_cache_file, 'w') as epgfile:
|
||||
epgfile.write(json.dumps(programguide, indent=4))
|
||||
|
||||
@ -294,6 +294,9 @@ class proxyserviceFetcher():
|
||||
|
||||
programguide[str(cdict["number"])]["listing"].append(clean_prog_dict)
|
||||
|
||||
for cnum in programguide:
|
||||
programguide[cnum]["listing"] = sorted(programguide[cnum]["listing"], key=lambda i: i['time_start'])
|
||||
|
||||
self.epg_cache = programguide
|
||||
with open(self.epg_cache_file, 'w') as epgfile:
|
||||
epgfile.write(json.dumps(programguide, indent=4))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user