From: André L. V. Loureiro Date: Fri, 19 Jun 2009 22:38:23 +0000 (-0400) Subject: Review in the methods of playlist service X-Git-Url: https://vcs.maemo.org/git/?p=zukebox;a=commitdiff_plain;h=add477160ef52c35408009117319d651505c36c4 Review in the methods of playlist service --- diff --git a/zukebox_server/src/services/playlist/zb_playlist.py b/zukebox_server/src/services/playlist/zb_playlist.py index 74fdd05..3dd424a 100644 --- a/zukebox_server/src/services/playlist/zb_playlist.py +++ b/zukebox_server/src/services/playlist/zb_playlist.py @@ -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):