Kodi Community Forum
[Release] - script.playlists - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+---- Forum: Skin helper addons (https://forum.kodi.tv/forumdisplay.php?fid=300)
+---- Thread: [Release] - script.playlists (/showthread.php?tid=112739)

Pages: 1 2 3 4


[Release] - script.playlists - pecinko - 2011-10-19

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


- ronie - 2011-10-19

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)


- `Black - 2011-10-19

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/)



- pecinko - 2011-10-19

[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".


- pecinko - 2011-10-19

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?


- pecinko - 2011-10-22

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


- ronie - 2011-10-22

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 ;-)


- pecinko - 2011-10-22

Many thanks!


- ronie - 2011-10-22

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.


- pecinko - 2011-10-23

Thanks a bunch. Will post findings later.


- pecinko - 2011-10-24

Ronie, just to let you know - so far so good! There are some cosmetic nitpicks - will post later about those.


- pecinko - 2011-11-01

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


- ronie - 2011-11-01

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 ;-)


- pecinko - 2011-11-01

Thanks I'm adding it to requred by skin Smile


- Martijn - 2011-11-01

ronie Wrote:heh, you think i was gonna add it without some proper testing first ;-)

I won't say anything Rolleyes