Kodi Community Forum

Full Version: [Release] - script.playlists
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
Hi guys,

I could use a script that would pull existing video and music smart/playlists (much similar to script favorites).

Is this possible to do with script? Ronie, would do you think?

Thanks
i think that wouldn't be too hard.

what window properties do you need?

something like these:
Window.Property(ScriptPlaylist.%d.Name)
Window.Property(ScriptPlaylist.%d.Path)
Window.Property(ScriptPlaylist.%d.Type)
Where do you need it? If you want to view playlists, you can do it with ActivateWindow and if you want to set a path, you can do:

Code:
Skin.SetFile(VideoPlaylist.Path,.xsp,special://userdata/playlists/video/)
Skin.SetFile(MusicPlaylist.Path,.xsp|.m3u,special://userdata/playlists/music/)
[quote=`Black]Where do you need it? If you want to view playlists, you can do it with ActivateWindow and if you want to set a path, you can do:

I want to make menu available in Music and Videos with will show a list of all music or video playlists user have made.

E.g. in Xperience1080 it could be one of the panels you get when you press "M".
ronie Wrote:i think that wouldn't be too hard.

what window properties do you need?

something like these:
Window.Property(ScriptPlaylist.%d.Name)
Window.Property(ScriptPlaylist.%d.Path)
Window.Property(ScriptPlaylist.%d.Type)

I'm not sure Type is necessary if there's an option to run script with a parameter, so that you can specify Music or Videos. (I was thinking of running it when loading video/music library to fetch data and auto populate menus).

If that's not possible, than I think this might be useful

Window.Property(ScriptPlaylist.Type.%d.Name)
Window.Property(ScriptPlaylist.Type.%d.Path)

so you can use only music or only video playlist, dependent of what library is active ATM.

Does this make sense?
Ronie, just curious if you're still considering this? Just trying to plan the coding on my side, no intension of bugging.
pecinko Wrote:Ronie, just curious if you're still considering this? Just trying to plan the coding on my side, no intension of bugging.

i'm glad you did as i somehow missed your previous reply...

will look into this tonight ;-)
Many thanks!
pecinko Wrote:Many thanks!

no problem, get it here: script.playlists-0.0.1.zip
see readme for instructions


the script depends on the elementtree script module,
in case it's not installed already, get it from our repo:
script.module.elementtree

any issues = Debug Log ;-)

lemme know how things work out.
Thanks a bunch. Will post findings later.
Ronie, just to let you know - so far so good! There are some cosmetic nitpicks - will post later about those.
OK, I finally found some time to finish skin implementation and I have experienced zero issues.

Cosmetics:

- script reports to log as artists slideshow or something like that
- <onload>RunScript(script.playlists,type=video)</onload> has to be used, read me is lacking "s"

Serious problems:

- it's not available in pre-eden repo :-)

Thanks again
pecinko Wrote:OK, I finally found some time to finish skin implementation and I have experienced zero issues.

Cosmetics:

- script reports to log as artists slideshow or something like that

copy and paste a few bits from other scripts and that's what you get...
will change that of course Smile

pecinko Wrote:- <onload>RunScript(script.playlists,type=video)</onload> has to be used, read me is lacking "s"
while i'm at it, i might fix that one as well...

pecinko Wrote:Serious problems:

- it's not available in pre-eden repo :-)

Thanks again

heh, you think i was gonna add it without some proper testing first ;-)
Thanks I'm adding it to requred by skin Smile
ronie Wrote:heh, you think i was gonna add it without some proper testing first ;-)

I won't say anything Rolleyes
Pages: 1 2 3 4