From e8e5451dc7ae820359e55a21735974fb8099d657 Mon Sep 17 00:00:00 2001 From: milaq Date: Sun, 21 Jul 2019 19:54:13 +0200 Subject: [PATCH] fix radiobrowser name sorting order --- ycast/radiobrowser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ycast/radiobrowser.py b/ycast/radiobrowser.py index 70935f8..c73eebe 100644 --- a/ycast/radiobrowser.py +++ b/ycast/radiobrowser.py @@ -50,7 +50,7 @@ def get_station_by_id(uid): def search(name): stations = [] - stations_json = request('stations/search?order=name&reverse=true&bitrateMin=' + + stations_json = request('stations/search?order=name&reverse=false&bitrateMin=' + str(MINIMUM_BITRATE) + '&name=' + str(name)) for station_json in stations_json: stations.append(Station(station_json)) @@ -79,7 +79,7 @@ def get_genres(): def get_stations_by_country(country): stations = [] - stations_json = request('stations/search?order=name&reverse=true&bitrateMin=' + + stations_json = request('stations/search?order=name&reverse=false&bitrateMin=' + str(MINIMUM_BITRATE) + '&countryExact=true&country=' + str(country)) for station_json in stations_json: stations.append(Station(station_json)) @@ -88,7 +88,7 @@ def get_stations_by_country(country): def get_stations_by_genre(genre): stations = [] - stations_json = request('stations/search?order=name&reverse=true&bitrateMin=' + + stations_json = request('stations/search?order=name&reverse=false&bitrateMin=' + str(MINIMUM_BITRATE) + '&tagExact=true&tag=' + str(genre)) for station_json in stations_json: stations.append(Station(station_json))