fHDHR_LocalNow/origin/origin_epg.py
deathbybandaid 12313bde74 first psuh
2021-01-15 13:52:25 -05:00

18 lines
431 B
Python

class OriginEPG():
def __init__(self, fhdhr):
self.fhdhr = fhdhr
def update_epg(self, fhdhr_channels):
programguide = {}
for fhdhr_id in list(fhdhr_channels.list.keys()):
chan_obj = fhdhr_channels.list[fhdhr_id]
if str(chan_obj.number) not in list(programguide.keys()):
programguide[str(chan_obj.number)] = chan_obj.epgdict
return programguide