fix radiobrowser name sorting order

This commit is contained in:
milaq 2019-07-21 19:54:13 +02:00
parent ae9f168e8b
commit e8e5451dc7

View file

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