Explorar o código

Merge pull request #77 from tomtastic/patch-1

Fix API endpoint for get_station_by_id
Micha LaQua %!s(int64=4) %!d(string=hai) anos
pai
achega
f349a2686c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ycast/radiobrowser.py

+ 1 - 1
ycast/radiobrowser.py

@@ -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: