Redirect music to nowplaying tags

master
Bob Mottram 2019-09-05 12:44:09 +01:00
parent f440cdec24
commit 5d110d73e9
1 changed files with 5 additions and 1 deletions

View File

@ -539,6 +539,10 @@ class PubServer(BaseHTTPRequestHandler):
return False return False
def do_GET(self): def do_GET(self):
# redirect music to #nowplaying list
if self.path=='/music' or self.path=='/nowplaying':
self.path='/tags/nowplaying'
if self.server.debug: if self.server.debug:
print('DEBUG: GET from '+self.server.baseDir+ \ print('DEBUG: GET from '+self.server.baseDir+ \
' path: '+self.path+' busy: '+ \ ' path: '+self.path+' busy: '+ \