test
This commit is contained in:
parent
12313bde74
commit
0b4b5ac3a3
@ -13,21 +13,22 @@ class OriginChannels():
|
||||
|
||||
channel_list = []
|
||||
|
||||
channels_json = self.fhdhr.web.session.get(self.base_api).json()
|
||||
channels_json = self.fhdhr.web.session.get(self.base_api).json()["data"]["channels"]
|
||||
for channel_dict in channels_json:
|
||||
if not channel_dict["disabled"]:
|
||||
|
||||
clean_station_item = {
|
||||
"name": channel_dict["config"]["affiliation"] or channel_dict["config"]["callsign"],
|
||||
"callsign": channel_dict["config"]["callsign"],
|
||||
"id": channel_dict["identifier"],
|
||||
"thumbnail": channel_dict["icon"],
|
||||
"name": channel_dict["name"],
|
||||
"callsign": channel_dict["slug"],
|
||||
"id": channel_dict["id"],
|
||||
"thumbnail": channel_dict["logo"],
|
||||
}
|
||||
channel_list.append(clean_station_item)
|
||||
|
||||
return channel_list
|
||||
|
||||
def get_channel_stream(self, chandict, stream_args):
|
||||
return None
|
||||
channels_json = self.fhdhr.web.session.get(self.base_api).json()
|
||||
origin_chandict = self.get_channel_dict(channels_json, "identifier", chandict["origin_id"])
|
||||
streamdict = self.get_channel_dict(origin_chandict["streams"], "StreamType", 'website')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user