[Release] - script.playlists
#1
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
My skins:

Amber
Quartz

Reply
#2
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)
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
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/)
Image
Reply
#4
[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".
My skins:

Amber
Quartz

Reply
#5
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?
My skins:

Amber
Quartz

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

Amber
Quartz

Reply
#7
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 ;-)
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#8
Many thanks!
My skins:

Amber
Quartz

Reply
#9
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.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#10
Thanks a bunch. Will post findings later.
My skins:

Amber
Quartz

Reply
#11
Ronie, just to let you know - so far so good! There are some cosmetic nitpicks - will post later about those.
My skins:

Amber
Quartz

Reply
#12
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
My skins:

Amber
Quartz

Reply
#13
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 ;-)
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#14
Thanks I'm adding it to requred by skin Smile
My skins:

Amber
Quartz

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

I won't say anything Rolleyes
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply



Logout Mark Read Team Forum Stats Members Help
[Release] - script.playlists0
This forum uses Lukasz Tkacz MyBB addons.