Call the do_scan method from ZAudioLibrary class
authorAndre L. V. Loureiro <loureiro.andrew@gmail.com>
Tue, 26 May 2009 04:30:42 +0000 (00:30 -0400)
committerAndre L. V. Loureiro <loureiro.andrew@gmail.com>
Tue, 26 May 2009 04:30:42 +0000 (00:30 -0400)
zukebox_server/src/server/zb_server.py

index c1f16ea..0dbed0c 100644 (file)
@@ -83,7 +83,6 @@ class ZukeBoxServer(ZIface, dbus.service.Object):
         cm = ConnectionManagerServer()
         mod_path = config.get_parameter("zukebox_server", "home")
         x_path = os.path.join(mod_path, "xml_descriptions")
-        print x_path
         playlist = PlayList(positions=10, xml_path=x_path)
 
         self.device.add_service(self.cds)
@@ -94,6 +93,7 @@ class ZukeBoxServer(ZIface, dbus.service.Object):
         """Start the ZukeBox Server"""
         self._create_device()
         self._create_services()
+        self.cds.control_controller.plugin_manager.plugins_instances["audio_library"].do_scan()
         self.device.start()
         reactor.add_after_stop_func(self.device.stop)
         reactor.main()
@@ -116,5 +116,3 @@ class ZukeBoxServer(ZIface, dbus.service.Object):
     def reload_config(self):
         config.manager.update()
 
-
-