From 5d110d73e9165ef564584dc4f3347b0b4b7ce268 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 5 Sep 2019 12:44:09 +0100 Subject: [PATCH] Redirect music to nowplaying tags --- daemon.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 4658a0812..860d318e6 100644 --- a/daemon.py +++ b/daemon.py @@ -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: '+ \