Review the whole code in zb_server
authorAndré L. V. Loureiro <loureiro.andrew@gmail.com>
Fri, 19 Jun 2009 22:39:15 +0000 (18:39 -0400)
committerAndré L. V. Loureiro <loureiro.andrew@gmail.com>
Fri, 19 Jun 2009 22:39:15 +0000 (18:39 -0400)
zukebox_server/src/server/zb_server.py

index e390531..3c8c21a 100644 (file)
@@ -79,13 +79,12 @@ class ZukeBoxServer(ZIface, dbus.service.Object):
                 model_url=project_page, serial_number=serial_no)
 
     def _create_services(self):
-        self.cds = ContentDirectory(self.plugins_folder, self.plugins_module_path)
         self.cds = ContentDirectory(self.plugins_folder,
                 self.plugins_module_path)
         cm = ConnectionManagerServer()
         x_path = config.get_parameter("zukebox_server", "xml_path")
-        playlist = PlayList(positions=10, xml_path=x_path)
-       search = Search(xml_path=x_path)
+        playlist = PlayList(10, x_path)
+       search = Search(x_path)
 
         self.device.add_service(self.cds)
         self.device.add_service(cm)