Fix API endpoint for get_station_by_id

Fixes https://github.com/milaq/YCast/issues/76
This commit is contained in:
Tom Matthews 2020-11-29 11:20:17 +00:00 committed by GitHub
parent e01d0af1a7
commit 25ecc9b668
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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: