This commit is contained in:
deathbybandaid 2020-12-15 13:48:19 -05:00
parent 936bc88a32
commit 2939a0e42d

View File

@ -22,8 +22,11 @@ class OriginChannels():
stirr_chan_list = chan_list_urlopn.json()
channel_list = []
chanindex = 0
for channel_dict in stirr_chan_list["channel"]:
chanindex += 1
chan_item_url = "%s/status/%s" % (self.base_api_url, str(channel_dict["id"]))
chan_item_urlopn = self.fhdhr.web.session.get(chan_item_url)
stirr_chan_item = chan_item_urlopn.json()
@ -36,7 +39,7 @@ class OriginChannels():
clean_station_item = {
"name": stirr_chan_item['rss']["channel"]["title"],
"callsign": channel_dict["display-name"],
# "number": str(channel_dict["number"]),
"number": chanindex,
"id": str(channel_dict["id"]),
"thumbnail": thumbnail
}