Index: contrib/radionet.py ================================================================== --- contrib/radionet.py +++ contrib/radionet.py @@ -161,18 +161,20 @@ # process json def from_json(self, ls_json): ls = [] for js in ls_json: - ls += json.loads(js)["data"]["stations"]["playables"] + js = json.loads(js)["data"] + print(json.dumps(js, indent=4)) + ls += js["topTenStations"]#["playables"] r = [] for row in ls: href = row["id"] r.append(dict( name = href, title = row["name"], - genre = ",".join(row["genres"]), + genre = ",".join(row.get("genres", [])), url = "urn:radionet:"+href, playing = row.get("city", row.get("country", "-")), homepage = "http://www.radio.net/s/{}".format(href), img = row["logo100x100"], ))