fHDHR_STIRR/origin/origin_epg.py
deathbybandaid a0e4120ba6 test
2020-12-15 09:37:27 -05:00

18 lines
447 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.dict["number"]) not in list(programguide.keys()):
programguide[str(chan_obj.dict["number"])] = chan_obj.epgdict
return programguide