Exemplo n.º 1
0
 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))
Exemplo n.º 2
0
 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))