RasPod icon indicating copy to clipboard operation
RasPod copied to clipboard

resync songs actually does not work

Open liuning0820 opened this issue 8 years ago • 0 comments

After the server started, if I add new media files(mp3) into media folder, then I click the resync songs button, the new added songs does not appear in the UI. I need to stop and restart the server.

I am using a raspbery and installed your app as the home media player, let it running 24*7. I can access the UI from any device(PC, phone, TV) in the wifi network. I want to push mp3 from any device into the media files. without stop and restart the raspod, I want the new added songs can be show in the UI after click the resync songs.

finially I made a fix in the server.py by added a line of code at the get method of class MainHandler.

class MainHandler(tornado.web.RequestHandler):

def initialize(self):
    self.loader = tornado.template.Loader(settings.TEMPLATE_FOLDER)

def get(self, playlist=None):
    **media = Media()**

.....

liuning0820 avatar Jun 26 '16 04:06 liuning0820