Review in the methods of playlist service
authorAndré L. V. Loureiro <loureiro.andrew@gmail.com>
Fri, 19 Jun 2009 22:38:23 +0000 (18:38 -0400)
committerAndré L. V. Loureiro <loureiro.andrew@gmail.com>
Fri, 19 Jun 2009 22:38:23 +0000 (18:38 -0400)
zukebox_server/src/services/playlist/zb_playlist.py

index 74fdd05..3dd424a 100644 (file)
@@ -26,7 +26,7 @@ class PlayList(Service):
     srvc_type = "urn:schemas-upnp-org:service:PlayList:1"
     srvc_name = "PlayList"
 
-    def __init__(self, positions=10, xml_path=''):
+    def __init__(self, positions, xml_path):
         scpd_path = pjoin(xml_path, "zukebox-playlist-scpd.xml")
         log.info("PlayList service scpd_path = %s" % scpd_path)
         Service.__init__(self, self.srvc_name, self.srvc_type, '', scpd_path)
@@ -118,7 +118,8 @@ class PlayList(Service):
 
     def soap_GetPlaylist(self, *args, **kwargs):
         """Get the playlist"""
-        return {"Playlist": self.list}
+        playlist = self.list.__str__()
+        return {"Playlist": playlist}
 
 
     def clean_playlist(self):