2013-12-17, 08:29
Hi All,
I stumbled accross a problem that I hope some-one could assist me with.
If I have a smart playlist (SmartTest1.xsp) that works OK in XBMC and is very simple, so something like:
And then I try to load this in python using:
I get the error:
This works OK for playlists in the m3u format.
Looking at the API docs it states:
I wasn't quite sure what the "..." implies - I had assumed that this means all playlist that XBMC supports - is this not the case? Am I missing a step somewhere?
Thanks
Rob
I stumbled accross a problem that I hope some-one could assist me with.
If I have a smart playlist (SmartTest1.xsp) that works OK in XBMC and is very simple, so something like:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="songs">
<name>SmartTest1</name>
<match>all</match>
<rule field="album" operator="contains">
<value>Now</value>
</rule>
</smartplaylist>
And then I try to load this in python using:
Code:
xbmcPlaylist = xbmc.PlayList(xbmc.PLAYLIST_MUSIC)
xbmcPlaylist.load(playlistFile)
I get the error:
Code:
EXCEPTION: Not a valid playlist
This works OK for playlists in the m3u format.
Looking at the API docs it states:
Code:
load(filename) -- Load a playlist.
clear current playlist and copy items from the file to this Playlist
filename can be like .pls or .m3u ...
returns False if unable to load playlist, True otherwise.
I wasn't quite sure what the "..." implies - I had assumed that this means all playlist that XBMC supports - is this not the case? Am I missing a step somewhere?
Thanks
Rob