test
This commit is contained in:
parent
db88b918c0
commit
359f18e48a
@ -27,21 +27,20 @@ class OriginChannels():
|
||||
chan_item_urlopn = self.fhdhr.web.session.get(chan_item_url)
|
||||
stirr_chan_item = chan_item_urlopn.json()
|
||||
|
||||
print(stirr_chan_item['rss']['channel'].keys())
|
||||
return []
|
||||
|
||||
try:
|
||||
thumbnail = channel_dict["icon"]["src"].split("?")[0]
|
||||
except TypeError:
|
||||
thumbnail = None
|
||||
|
||||
clean_station_item = {
|
||||
# "name": stirr_chan_item["channel"]["display-name"],
|
||||
"name": stirr_chan_item['rss']["channel"]["title"],
|
||||
"callsign": channel_dict["display-name"],
|
||||
# "number": str(channel_dict["number"]),
|
||||
"id": str(channel_dict["id"]),
|
||||
"thumbnail": thumbnail
|
||||
}
|
||||
print(clean_station_item)
|
||||
return []
|
||||
# channel_list.append(clean_station_item)
|
||||
|
||||
return channel_list
|
||||
|
||||
Loading…
Reference in New Issue
Block a user