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

@ -538,7 +538,11 @@ class PubServer(BaseHTTPRequestHandler):
return True
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:
print('DEBUG: GET from '+self.server.baseDir+ \
' path: '+self.path+' busy: '+ \