2011-03-17, 21:47
Hello
Since my update to the current xbmc-dev-version i'am suffering some problems with playlist createt by my addons
code snippet:
if i remove the first line all works fine, except the fact, that only one playlist will be createt and reused every time.
if i try to clear the playlist with "Playlist.Clear()" my i'am unable to create a playlist... i't simply open an empty playlist.
any idea
greetings
Raptor 2101
Since my update to the current xbmc-dev-version i'am suffering some problems with playlist createt by my addons
code snippet:
Code:
xbmc.executebuiltin("Playlist.Clear");
items = [];
playableObject.getAllUnreadItems(items);
playlist = xbmc.PlayList(xbmc.PLAYLIST_MUSIC)
for item in items:
listItem = self.buildMediaItem(item,False);
playlist.add(url=item.link, listitem=listItem)
player.play(playlist, playerItem);
xbmc.executebuiltin("ActivateWindow(musicplaylist)");
if i remove the first line all works fine, except the fact, that only one playlist will be createt and reused every time.
if i try to clear the playlist with "Playlist.Clear()" my i'am unable to create a playlist... i't simply open an empty playlist.
any idea
greetings
Raptor 2101