How do you start a smart playlist from a script?
#1
I have tried this:
Code:
xbmc.executebuiltin("XBMC.PlayMedia(E:\\XBMC\\albums\\playlists\\video\\Mixed music videos.xsp)")

and this:
Code:
musicVidPls = xbmc.PlayList(1)        ## initialize playlist, 0 should be music where, 1 should be video
musicVidPls.load("E:\\XBMC\\albums\\playlists\\video\\Mixed music videos.xsp")
xbmc.Player().play(musicVidPls)

but neither works for a smart playlist, is there any other way?:confused2:
Reply
#2
smart playlists are not supported via python or the builtin playmedia, yet.

Are you the person from SF? I posted that there.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
Hmm, no, that's not me. I looked around for a solution to this before I posted, but couldn't find that anyone had brought it up before. And as I understand smart playlists have been around for a while (maybe not for videos), so it's funny that we chose to ask about it on the same day. :p

But it's not a big problem for me. I can just open the smart playlist whenever I add new music videos (which I rarely do), save it as an ordinary playlist and then use that in my script. Smile
Reply
#4
I searched and couldn't find a TRAC ticket, so I made one.

TRAC #9127
Have a question? First try the XBMC online-manual and FAQ. Also: How to submit a debug log
Reply

Logout Mark Read Team Forum Stats Members Help
How do you start a smart playlist from a script?0