test
This commit is contained in:
parent
359b495910
commit
1068c18bf0
@ -78,13 +78,15 @@ class OriginEPG():
|
|||||||
|
|
||||||
timedict = self.get_prog_timedict(program_dict["startDate"], nextprog_dict["startDate"])
|
timedict = self.get_prog_timedict(program_dict["startDate"], nextprog_dict["startDate"])
|
||||||
|
|
||||||
|
try:
|
||||||
|
subtitle = program_dict["name"]
|
||||||
|
except KeyError:
|
||||||
|
subtitle = "Unavailable"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
title = program_dict["info"]["fullname"]
|
title = program_dict["info"]["fullname"]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
try:
|
title = subtitle
|
||||||
title = program_dict["name"]
|
|
||||||
except KeyError:
|
|
||||||
title = "Unavailable"
|
|
||||||
|
|
||||||
clean_prog_dict = {
|
clean_prog_dict = {
|
||||||
"time_start": timedict['time_start'],
|
"time_start": timedict['time_start'],
|
||||||
@ -92,7 +94,7 @@ class OriginEPG():
|
|||||||
"duration_minutes": timedict["duration"],
|
"duration_minutes": timedict["duration"],
|
||||||
"thumbnail": program_dict["info"]["image"],
|
"thumbnail": program_dict["info"]["image"],
|
||||||
"title": title,
|
"title": title,
|
||||||
"sub-title": program_dict["name"],
|
"sub-title": subtitle,
|
||||||
"description": "Unavailable",
|
"description": "Unavailable",
|
||||||
"rating": "N/A",
|
"rating": "N/A",
|
||||||
"episodetitle": None,
|
"episodetitle": None,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user