diff --git a/webServer.py b/webServer.py index 4be0a7f5..c75ff37d 100644 --- a/webServer.py +++ b/webServer.py @@ -316,6 +316,11 @@ class Headphones: upcoming.exposed = True def manage(self): + config = configobj.ConfigObj(config_file) + try: + path = config['General']['path_to_xml'] + except: + path = 'Absolute path to iTunes XML or Top-Level Music Directory' page = [templates._header] page.append(templates._logobar) page.append(templates._nav) @@ -327,17 +332,20 @@ class Headphones: Once you click "Submit" you can navigate away from this page while the process runs.


-


Force Search


Force Check for Wanted Albums

- Force Update Active Artists


''') + Force Update Active Artists


''' % path) page.append(templates._footer) return page manage.exposed = True def importItunes(self, path): + config = configobj.ConfigObj(config_file) + config['General']['path_to_xml'] = path + config.write() import itunesimport itunesimport.itunesImport(path) raise cherrypy.HTTPRedirect("/")