test
This commit is contained in:
parent
0ce687f3ec
commit
d2629544fd
@ -1,4 +1,5 @@
|
||||
import datetime
|
||||
import json
|
||||
|
||||
|
||||
class OriginEPG():
|
||||
@ -18,7 +19,12 @@ class OriginEPG():
|
||||
programguide[str(chan_obj.number)] = chan_obj.epgdict
|
||||
|
||||
epg_opn = self.fhdhr.web.session.get(self.base_epg_url + str(chan_obj.dict["origin_id"]))
|
||||
try:
|
||||
epg_json = epg_opn.json()
|
||||
except json.JSONDecodeError:
|
||||
epg_json = None
|
||||
|
||||
if epg_json:
|
||||
|
||||
current_channel_id = chan_obj.dict["origin_id"]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user