def playAlbum(self, album, startpos=-1, fanart=None):
self.handler = AudioPlayerHandler(self)
plist = xbmc.PlayList(xbmc.PLAYLIST_MUSIC)
plist.clear()
index = 1
for track in album.tracks():
url, li = self.createTrackListItem(track, fanart, index=index)
plist.add(url, li)
index += 1
xbmc.executebuiltin('PlayerControl(RandomOff)')
self.stopAndWait()
self.play(plist, startpos=startpos)
评论列表
文章目录