Single station response seems to require a whole page
That's a random shot, but worth a try.
This commit is contained in:
parent
4f6be40da9
commit
195c6fdc5b
1 changed files with 4 additions and 1 deletions
|
@ -89,7 +89,10 @@ def get_station_by_id(stationid):
|
|||
elif station_id_prefix == radiobrowser.ID_PREFIX:
|
||||
station = radiobrowser.get_station_by_id(generic.get_stationid_without_prefix(stationid))
|
||||
if station:
|
||||
return station.to_vtuner()
|
||||
page = vtuner.Page()
|
||||
page.add(station.to_vtuner())
|
||||
page.set_count(1)
|
||||
return page
|
||||
else:
|
||||
return None
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue