add support for navXML.asp and FavXML.asp queries

Some devices use hardcoded links for station list and favourites.
This commit is contained in:
Jakub Janeczko 2020-08-09 21:06:30 +02:00 committed by milaq
parent ee5d6ffdb1
commit 04c40f2b5f

View file

@ -122,6 +122,10 @@ def upstream(path):
return station_search()
if 'statxml.asp' in path and request.args.get('id'):
return get_station_info()
if 'navXML.asp' in path:
return radiobrowser_landing()
if 'FavXML.asp' in path:
return my_stations_landing()
if 'loginXML.asp' in path:
return landing()
logging.error("Unhandled upstream query (/setupapp/%s)", path)