def __init__(self, positions=10, xml_path):
scpd_path = pjoin(xml_path, "zukebox-playlist-scpd.xml")
Service.__init__(self, service_name, service_type, '', scpd_path,
- PlayListControl(positions))
+ PlayListControl(positions, service_type))
+
+ def get_playlist(self):
+ return self.control_controller.get_playlist()
class PlayListControl(ServiceController):
- def __init__(self, positions):
+ def __init__(self, positions, serv_type):
+ ServiceController.__init__(self, serv_type)
self.positions = positions
self.list = []
self.current = 0
if self.is_availble():
self.list = []
+ def get_playlist(self):
+ return self.list
+