Compare commits

..

No commits in common. "master" and "1.1.0" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View file

@ -42,7 +42,6 @@ Any reported device helps the community to see which AVRs work properly and whic
* Marantz NR1605
* Marantz NA6005
* Marantz NA8005
* Marantz SR5009
* Onkyo TX-NR414
* Onkyo TX-NR5009
* Onkyo TX-NR616

View file

@ -61,7 +61,7 @@ def request(url):
def get_station_by_id(uid):
station_json = request('stations/byuuid/' + str(uid))
station_json = request('stations/byid/' + str(uid))
if station_json and len(station_json):
return Station(station_json[0])
else:
@ -152,6 +152,7 @@ def get_stations_by_votes(limit=DEFAULT_STATION_LIMIT):
stations = []
stations_json = request('stations?order=votes&reverse=true&limit=' + str(limit))
for station_json in stations_json:
print(station_json)
if SHOW_BROKEN_STATIONS or get_json_attr(station_json, 'lastcheckok') == 1:
stations.append(Station(station_json))
return stations