Compare commits

...

6 commits

Author SHA1 Message Date
Micha LaQua
f349a2686c
Merge pull request #77 from tomtastic/patch-1
Fix API endpoint for get_station_by_id
2020-12-03 13:41:47 +01:00
Micha LaQua
22475e9c3a
Merge pull request #70 from Arduous/patch-1
Update README.md ycast works with a Marantz SR5009
2020-12-03 13:35:08 +01:00
Micha LaQua
1d65195926
Merge pull request #73 from Arduous/master
radiobrowser.py: remove inadequate print statement.
2020-12-03 13:34:38 +01:00
Tom Matthews
25ecc9b668
Fix API endpoint for get_station_by_id
Fixes https://github.com/milaq/YCast/issues/76
2020-11-29 11:20:17 +00:00
Samuel Progin
595dea2fd5
radiobrowser.py: remove inadequate print statement.
The print statement is removed as:
- It is not present in other very similar methods
- It clutters the log
2020-10-24 17:28:38 +02:00
Samuel Progin
a37b86f638
Update README.md ycast works with a Marantz SR5009
Thank you.
2020-10-20 17:50:36 +02:00
2 changed files with 2 additions and 2 deletions

View file

@ -42,6 +42,7 @@ 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/byid/' + str(uid))
station_json = request('stations/byuuid/' + str(uid))
if station_json and len(station_json):
return Station(station_json[0])
else:
@ -152,7 +152,6 @@ 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