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


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

@Mudislander :

If you want to test the new property Type, you just have to edit randomandlastitems.py code in the addon directory :

before :
Code:
def _setGeneralProperties ( _total, _watched, _unwatched ):
    global PROPERTIE
    global WINDOW
    # Set window properties
    _setProperty ( "%s.Count" % ( PROPERTIE ), str( _total ) )
    _setProperty ( "%s.Watched" % ( PROPERTIE ), str( _watched ) )
    _setProperty ( "%s.Unwatched" % ( PROPERTIE ), str( _unwatched ) )

After :
Code:
def _setGeneralProperties ( _total, _watched, _unwatched ):
    global PROPERTIE
    global WINDOW
    global TYPE
    # Set window properties
    _setProperty ( "%s.Count" % ( PROPERTIE ), str( _total ) )
    _setProperty ( "%s.Watched" % ( PROPERTIE ), str( _watched ) )
    _setProperty ( "%s.Unwatched" % ( PROPERTIE ), str( _unwatched ) )
    _setProperty ( "%s.Type" % ( PROPERTIE ), TYPE )



RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - Mudislander - 2012-04-02 11:10

(2012-04-02 10:42)mikebzh44 Wrote:  @Mudislander :

If you want to test the new property Type, you just have to edit randomandlastitems.py code in the addon directory :

Thanks Big Grin I'll give it a test


Edit Initial test, seems to work well, have cut out miles of code Smile


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

Found a small bug for you with the .Count property. Not an issue for me but you may want to look at it.

I have a playlist that returns 20 items, with 2 watched and 18 Unwatched - Which is correct. When I tell the script I only want to see the Unwatched items it returns 18 which is correct. However the .Count property stays at 20, with 2 watched and 18 Unwatched. Should it not now report 18 items with 0 watched.

As I said not an issue for me, as I'm happy it's reporting back on the whole playlist but you can decide what you want Smile


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

It's because .Count, .Watched and .Unwatched are based on Playlist and not on options resume= or unwatched=.

So everything is OK Wink

Has your tests are OK, I will put .Type property in next version.


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - Mudislander - 2012-04-03 10:33

All good, looking forward to next update, .Type property is a big help - Thanks


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - butchabay - 2012-04-03 12:08

Hope this won't affect the old way.


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

No. You can specifie all the properties if you want.


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - butchabay - 2012-04-03 13:09

Great thanx, btw just integrated your work in cirrus extended v2 and cirrus extended light.

See Here


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

Great work and great skins.


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - mikebzh44 - 2012-04-06 15:10

Version 1.2.0 released

v1.2.0
- [Add] Property .Type is returned. Value is Movie or Episode.
Helpfull if you use script with playlist and did not specifie type= parameter so script will get type from playlist.