def toPlaylistJSON(self): return dict(id = self.id, title = r.title(self), artist = r.artist(self), album = r.album(self), tracknum = r.tracknum(self), filepath = r.filepath(self), bitrate = r.bitrate(self), length = r.length(self))
def toPlaylistJSON(self): return dict(id = self.id, title = self.name, artist = self.artistcredit, artistid = '???', album = self.releasename, albumid = self.albumid, tracknum = self.tracknum or '', discnum = self.discnum or '', filepath = r.filepath(self.file), bitrate = r.bitrate(self.file), length = r.length(self.file))