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)
|
chan_item_urlopn = self.fhdhr.web.session.get(chan_item_url)
|
||||||
stirr_chan_item = chan_item_urlopn.json()
|
stirr_chan_item = chan_item_urlopn.json()
|
||||||
|
|
||||||
print(stirr_chan_item['rss']['channel'].keys())
|
|
||||||
return []
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
thumbnail = channel_dict["icon"]["src"].split("?")[0]
|
thumbnail = channel_dict["icon"]["src"].split("?")[0]
|
||||||
except TypeError:
|
except TypeError:
|
||||||
thumbnail = None
|
thumbnail = None
|
||||||
|
|
||||||
clean_station_item = {
|
clean_station_item = {
|
||||||
# "name": stirr_chan_item["channel"]["display-name"],
|
"name": stirr_chan_item['rss']["channel"]["title"],
|
||||||
"callsign": channel_dict["display-name"],
|
"callsign": channel_dict["display-name"],
|
||||||
# "number": str(channel_dict["number"]),
|
# "number": str(channel_dict["number"]),
|
||||||
"id": str(channel_dict["id"]),
|
"id": str(channel_dict["id"]),
|
||||||
"thumbnail": thumbnail
|
"thumbnail": thumbnail
|
||||||
}
|
}
|
||||||
|
print(clean_station_item)
|
||||||
|
return []
|
||||||
# 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