test
This commit is contained in:
parent
a1eb27e459
commit
18d5c120e4
@ -64,9 +64,34 @@ class OriginEPG():
|
|||||||
"&dateString=%s"
|
"&dateString=%s"
|
||||||
"&count=150" %
|
"&count=150" %
|
||||||
(self.media_url, schedulename_quote, datestring))
|
(self.media_url, schedulename_quote, datestring))
|
||||||
progtimes = self.get_cached(epgname, todaydate, schedule_url)
|
epgguide = self.get_cached(epgname, todaydate, schedule_url)
|
||||||
print(schedule_url)
|
|
||||||
print(progtimes)
|
progindex = 0
|
||||||
|
for program_dict in epgguide:
|
||||||
|
|
||||||
|
epgguide[progindex + 1]
|
||||||
|
|
||||||
|
"""
|
||||||
|
clean_prog_dict = {
|
||||||
|
"time_start": timestamp['time_start'],
|
||||||
|
"time_end": timestamp['time_end'],
|
||||||
|
"duration_minutes": 60,
|
||||||
|
"thumbnail": ("/api/images?method=generate&type=content&message=%s" % (str(c["origin_id"]) + "_" + str(timestamp['time_start']).split(" ")[0])),
|
||||||
|
"title": "Unavailable",
|
||||||
|
"sub-title": "Unavailable",
|
||||||
|
"description": "Unavailable",
|
||||||
|
"rating": "N/A",
|
||||||
|
"episodetitle": None,
|
||||||
|
"releaseyear": None,
|
||||||
|
"genres": [],
|
||||||
|
"seasonnumber": None,
|
||||||
|
"episodenumber": None,
|
||||||
|
"isnew": False,
|
||||||
|
"id": str(c["origin_id"]) + "_" + str(timestamp['time_start']).split(" ")[0],
|
||||||
|
}
|
||||||
|
programguide[str(c["number"])]["listing"].append(clean_prog_dict)
|
||||||
|
"""
|
||||||
|
progindex += 1
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user