XBMC Community Forum
[RELEASE] Random and last items smartplaylist script for Skins - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Skin Development (/forumdisplay.php?fid=12)
+--- Thread: [RELEASE] Random and last items smartplaylist script for Skins (/showthread.php?tid=122448)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - mikebzh44 - 2012-03-23 17:27

Did you use Count, Watched and Unwatched properties ?

fmronan have lost those properties in Glass and I wonder if it's due to my last version.

As soon as fmronan get back those properties, I will push the script to official repo.


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - Big_Noid - 2012-03-23 18:01

They work fine with version 1.1.6.
I use this to run the script:
Code:
XBMC.RunScript(script.randomandlastitems, playlist=$INFO[Skin.String(HomeMenuVideoPlaylist1_Path)], method=$INFO[Skin.String(MethodVPL1)], limit=10, unwatched=$INFO[Skin.String(IncludeWatchedCVPL)], resume=False, propertie=PlaylistLastMovieVPL1)



RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - mikebzh44 - 2012-03-23 18:03

Yes, fmronan have found the problem in Glass (some code lost when including Artwork Downloader addon).

I will post version 1.1.7 on Ciné-passion repo to fix properties name and if no bugs found I will push it to official repo monday morning.
Version 1.1.7 released

v1.1.7
- [Fix] When type= was not set with playlist, properties name was unwellformed


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - mikebzh44 - 2012-03-28 17:02

Version 1.1.8 released

v1.1.8
- [Add] New property Resolution for Movies. Values are blank, 480, 540, 576, 720, 1080

[Off Topic]
I was thinking about skinners who want to put this script as a require in their skin. I thought that you could put a require on passion-xbmc repository and then a require on my script. But passion-xbmc repository can't be added to official repository Sad
Someone from the XBMC team (Martijn ?) can explain why ?
It could be a great promotion for passion-XBMC repository and users can discover some new addons.
[/Off Topic]


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - spiff - 2012-03-28 17:09

because it's a third party repository and we want to make it absolute 110% clear by you having to add it manually.

if you want your add-ons officially "embraced", they need to be under our control (in terms of what is distributed from xbmc.org).


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - mikebzh44 - 2012-03-29 09:57

Version 1.1.9 released

v1.1.9
- [Fix] If video has no stream details, resolution is set to blank

Has this script is still in development and I will add random and last properties for music, I think I won't put it on official repository, because of point 6.1 :

http://wiki.xbmc.org/index.php?title=Official_add-on_repository#Updates


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - Mudislander - 2012-04-01 12:25

Out of interest, if you use the property "propertie=SomePlayList" and do not set "type", is there anyway you could get if the type is Movie or Episode from the script. This makes a difference for me as the resulting list for Movies are shown as portrait while Episodes are landscape


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - mikebzh44 - 2012-04-01 12:31

Could you explain more, I don't understand your remark Sad


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - Mudislander - 2012-04-01 12:49

(2012-04-01 12:31)mikebzh44 Wrote:  Could you explain more, I don't understand your remark Sad

I've been redoing support for this script and have used

Code:
XBMC.RunScript(script.randomandlastitems,playlist=SomePlayList,method=Last,limit​=10,unwatched=False,resume=False,propertie=MyFirstPlaylist)

And not added the option "type = Movie/Episode" so that type will be read from playlist file. Which works and is easier.

But when I want to display the output I now need to know if the playlist (Added by a user) was for Movie/Episode as they are displayed differently

Is there anyway I can get from the script what "type" (Movie/Episode) the playlist of " propertie=MyFirstPlaylist" is


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - mikebzh44 - 2012-04-02 08:05

No, but I can return a new property Type.

I'm busy today but I will make it for tomorrow Wink