diff --git a/fHDHR/origin/origin_channels.py b/fHDHR/origin/origin_channels.py index 7a19fe9..5691ee8 100644 --- a/fHDHR/origin/origin_channels.py +++ b/fHDHR/origin/origin_channels.py @@ -18,16 +18,17 @@ class OriginChannels(): api_json = self.fhdhr.web.session.get(channel_json_url).json() for channel_dict in api_json['channel']['item']: - if channel_dict["properties"]["has_vod"] == "true": + if "is_simulcast" in list(channel_dict["properties"].keys()): + if channel_dict["properties"]["is_simulcast"] == "true": - clean_station_item = { - "name": channel_dict["title"], - "callsign": channel_dict["callsign"], - "number": str(channel_dict["number"]), - "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"]) - } - channel_list.append(clean_station_item) + clean_station_item = { + "name": channel_dict["title"], + "callsign": channel_dict["callsign"], + "number": str(channel_dict["number"]), + "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"]) + } + channel_list.append(clean_station_item) return channel_list