From 2939a0e42d747c032dd24d21dca7170fabc12336 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 15 Dec 2020 13:48:19 -0500 Subject: [PATCH] test --- origin/origin_channels.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/origin/origin_channels.py b/origin/origin_channels.py index 3bcfbf4..9f149ef 100644 --- a/origin/origin_channels.py +++ b/origin/origin_channels.py @@ -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 }