![]() |
|
[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) |
- Martijn - 2012-02-13 19:47 If you do this script will benefit from a speeds increase on processing. PHP Code: # Use json instead of simplejson when python v2.7 or greaterI also noticed that when you have several buttons with playlists next to each other it takes some time to update them. So if you switch to the next one you will get the list for a couple of seconds of the previous playlist. Don't know if this is something you can solve? - Big_Noid - 2012-02-13 21:52 Can you make the Count property count all the movies in the playlist regardless of unwatched option, just like in random movies script and recent added script? Right now it counts the number of items returned by the script, instead of the playlist items. - mikebzh44 - 2012-02-14 00:33 Martijn Wrote:If you do this script will benefit from a speeds increase on processing.Thanks for the tip. For the second problem, I don't know if I could do something
- mikebzh44 - 2012-02-14 00:35 Big_Noid Wrote:Can you make the Count property count all the movies in the playlist regardless of unwatched option, just like in random movies script and recent added script?I will ask to fmronan, Glass skinner, because the script has been made with him and for him. Maybe, I could return a new propertie like TotalCount. - mikebzh44 - 2012-02-14 15:16 buges Wrote:Im having problems with the script loading my playlist. The playlist is there in xbmc & working perfectly. I have the same warning as you but script is OK and properties are displayed. But I think you have made a mistake in your code : <onfocus>XBMC.RunScript(script.RandomAndLastItems,limit=10,method='Last',playlist='special://profile/playlists/video/1234.xsp','menu=Menu1')</onfocus> Right code should be : <onfocus>XBMC.RunScript(script.RandomAndLastItems,limit=10,method='Last',playlist='special://profile/playlists/video/1234.xsp',menu='Menu1')</onfocus> - mikebzh44 - 2012-02-14 15:28 For the warning, it's normal : http://forum.xbmc.org/showpost.php?p=1017827&postcount=1703 - mikebzh44 - 2012-02-14 16:26 New version 1.0.4 : http://passion-xbmc.org/addons/Download.php/script.randomandlastitems/script.randomandlastitems-1.0.4.zip Fix a bug and now, propertie Count contains the number of movies in the playlist. I have to think about Watched and Unwatched because I have to scan every movies of the playlist to see if playcount =0 or not. - Shinu - 2012-02-14 17:07 once u get things sorted out for movies, will u be looking into tv shows too? PS: u should update ur first post with the link to the latest version. i could have sworn that u were still on version 1.0.1. - mikebzh44 - 2012-02-14 17:11 First post has been updated ![]() Newt step is TV Shows - Big_Noid - 2012-02-14 20:05 mikebzh44 Wrote:Fix a bug and now, propertie Count contains the number of movies in the playlist. Great, thx! |