test
This commit is contained in:
parent
8b3984debf
commit
77d3f554a2
@ -18,15 +18,16 @@ class OriginChannels():
|
|||||||
api_json = self.fhdhr.web.session.get(channel_json_url).json()
|
api_json = self.fhdhr.web.session.get(channel_json_url).json()
|
||||||
|
|
||||||
for channel_dict in api_json['channel']['item']:
|
for channel_dict in api_json['channel']['item']:
|
||||||
|
if channel_dict["properties"]["has_vod"] == "false":
|
||||||
|
|
||||||
clean_station_item = {
|
clean_station_item = {
|
||||||
"name": channel_dict["title"],
|
"name": channel_dict["title"],
|
||||||
"callsign": channel_dict["callsign"],
|
"callsign": channel_dict["callsign"],
|
||||||
"number": str(channel_dict["number"]),
|
"number": str(channel_dict["number"]),
|
||||||
"id": str(channel_dict["guid"]["value"]),
|
"id": str(channel_dict["guid"]["value"]),
|
||||||
"thumbnail": "https://image.xumo.com/v1/channels/channel/%s/512x512.png?type=color_onBlack" % str(channel_dict["guid"]["value"])
|
"thumbnail": "https://image.xumo.com/v1/channels/channel/%s/512x512.png?type=color_onBlack" % str(channel_dict["guid"]["value"])
|
||||||
}
|
}
|
||||||
channel_list.append(clean_station_item)
|
channel_list.append(clean_station_item)
|
||||||
|
|
||||||
return channel_list
|
return channel_list
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user