瀏覽代碼

Fix API endpoint for get_station_by_id

Fixes https://github.com/milaq/YCast/issues/76
Tom Matthews 4 年之前
父節點
當前提交
25ecc9b668
共有 1 個文件被更改,包括 1 次插入1 次删除
  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: