[RELEASE] Random and last items smartplaylist script for Skins - 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] Random and last items smartplaylist script for Skins (/showthread.php?tid=122448) |
RE: [RELEASE] Random and last items smartplaylist script for Skins - mr.sparkle - 2015-01-05 I'm using 2.2.2 with Helix/Aeon Shednox 4.1.9.9 on a firetv. When using the smart playlist manager to add latest widgets and random backgrounds for smart playlists, I have to drill to the absolute path of the playlists. The "special://" notation doesn't appear. As such, the widgets don't get populated, although no error shows on screen. I noticed in the changelog that there was a fix for Gotham special:// paths, is the same required for Helix? Thanks in advance RE: [RELEASE] Random and last items smartplaylist script for Skins - mikebzh44 - 2015-01-06 The smart playlist manager have nothing to do with this addon. I think it's a skin issue. RE: [RELEASE] Random and last items smartplaylist script for Skins - tomer953 - 2015-01-20 This is still working? Created smartplaylist Tomer.xsp : Code: <smartplaylist type="movies"> put this on startup.xml Code: <onload>RunScript(script.randomandlastitems,limit=10,method=Last,playlist=special://masterprofile/playlists/video/Tomer.xsp,menu=Menu1)</onload> using this label: Code: $INFO[Window(Home).Property(PlaylistLastMovieMenu1.1.Title)] cant get nothing... Helix RE: [RELEASE] Random and last items smartplaylist script for Skins - schimi2k - 2015-01-22 hey buddy Thx for this script, but i have some problems with FC´s after i come back to main menu after i navigate through the menus Skin: latest Shednox mod Script: 2.2.2 ( latest from repo ) here is the error from log: PHP Code: ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- maybe u have an idea ? thx in advance mate RE: [RELEASE] Random and last items smartplaylist script for Skins - mikebzh44 - 2015-01-22 @tomer : This is how the script is called in Aeon Nox (Shedrock for Helix) : Code: RunScript(script.randomandlastitems,type=Movie,playlist=special://profile/playlists/video/Cartoons.xsp,method=Last,limit=10,unwatched=False,resume=False,property=SmartPlaylist1) and how properties are used in skin : Code: <label>$INFO[Window(Home).Property(SmartPlaylist1.1.Title)]</label> It's easier to use property= parameter in order to specifie property name and not to let script used default one. But with "menu=Menu1" instead of "property=" parameter, properties returned are : Code: 11:45:28 T:6932 NOTICE: ('PlaylistLastMovieMenu1.1.Title', u'La l\xe9gende de Manolo') So $INFO[Window(Home).Property(PlaylistLastMovieMenu1.1.Title)] should be fine. You can add debug by duplicating line 196 in randomandlastitems.py file (in Random And Last Items addon folder) and modifing it : BEFORE : Code: _setProperty( "%s.%d.Title" % ( PROPERTY, _count ), _movie.get('title','')) AFTER : Code: _setProperty( "%s.%d.Title" % ( PROPERTY, _count ), _movie.get('title','')) CAUTION : Take care of indentation, snippets are not aligned but it's due to forum display. @schimi2k : acces_violation, wow !! I have no idea why this FC can occur RE: [RELEASE] Random and last items smartplaylist script for Skins - tomer953 - 2015-01-22 mikebzh44 many thanks to you. buy still not working. I'll show you step by step. Here is the smartplaylist (I made it simple for the example, only movies from 2013): Here is the startup.xml -> copied from your message (only changed Cartoons to Tomer): http://pastebin.com/79zELm2c and here is the label control in "View-Fanart.xml": http://pastebin.com/DRUxkUCG Restart Kodi, Then goes to Movies Libary and I can only see: a123 b456 (without nothing in the middle). also modified the .py script with the "print" command like you said and all I can see is those stange lines: http://pastebin.com/5J1SLpym and I found in google this table: http://www.utf8-chartable.de/unicode-utf8-table.pl?start=1408&number=128&utf8=string-literal any ideas? etc, the libary is Mysql libary RE: [RELEASE] Random and last items smartplaylist script for Skins - senna99 - 2015-01-22 Hello Small help. Is it possible to call pvr channels with script.randomandlastitems in home menu to present name of channels and icon RE: [RELEASE] Random and last items smartplaylist script for Skins - mikebzh44 - 2015-01-22 I don't know, "\xe2\x80\x8b" : ZERO WIDTH SPACE http://utf8-chartable.de/unicode-utf8-table.pl?start=8192&number=128&utf8=string-literal Maybe a wrong copy/paste. But as you are running Windows in hebrew, it's normal to get u'\u05e1\u05d5\u05e3' which mean : http://www.charbase.com/05e1-unicode-hebrew-letter-samekh http://www.charbase.com/05d5-unicode-hebrew-letter-vav http://www.charbase.com/05e3-unicode-hebrew-letter-final-pe So I think script return title and other properties in Hebrew and Kodi can't display it. Your Kodi is set in Hebrew or England ? (2015-01-22, 14:03)senna99 Wrote: HelloNo. RE: [RELEASE] Random and last items smartplaylist script for Skins - tomer953 - 2015-01-22 Indeed Hebrew.... any solution ? all of the other functions in kodi works great in hebrew, all the scripts (random items\recent albums etc) any idea how to solve it ? ok problem solved by changing property=SmartPlaylist1 to property=smart1 which now works great and also dispay the title in hebrew correctly. changed it because I saw in the log "'SmartPla\xe2\x80\x8bylist1.10.Title'" so I changed it to "smart1" and now its working :] RE: [RELEASE] Random and last items smartplaylist script for Skins - mikebzh44 - 2015-01-22 OK, I think that SmartPlaylist1 was not the problem. I think that you have an unprintable character the first time you type SmartPlaylist (bad copy/paste from this thread ?) But if smart1 work, you can keep it RE: [RELEASE] Random and last items smartplaylist script for Skins - Slipass - 2015-03-16 Hello, i have an problem with this script. I used it with aeon nox mania skin and a constellation with windows 8.1, mysql db, kodi 14.2 rc1 and intel nuc i5. When i have live dvd background in combi with an smart playlist in the home menu, i get 80% cpu used. Without the andomlastitem, the cpu used is 9%. RE: [RELEASE] Random and last items smartplaylist script for Skins - mikebzh44 - 2015-03-16 Hi. How many movies in library ? How many custom menu based on smart playlist ? RE: [RELEASE] Random and last items smartplaylist script for Skins - Slipass - 2015-03-16 I have about 30 Blu-Ray, 20 3Ds and 120 Klassic Blu-Rays...etc In addition Comedy Series, Drama Series and dokus. (About 120 Series - over 5000 Episodes) Complete i have 4 custom menus for Blu-Rays and 5 custom menus for series. The problem is, that i can only choose 5 custom smart playlists for the LiveDVD background. RE: [RELEASE] Random and last items smartplaylist script for Skins - Mudislander - 2015-03-19 (2014-10-29, 15:14)mikebzh44 Wrote: @skinners : Did you continue to use this script for Helix release of your skins ? Still my favourite script for a number of reasons, one being the ability to return the type of playlist being run on. Will you be maintaining it through the Helix cycle ? RE: [RELEASE] Random and last items smartplaylist script for Skins - mikebzh44 - 2015-03-19 Just a quick test. I have download Kodi 15.0 Alpha 1, install Aeon Nox Shedrock and building a custom menu based on smart playlist and add LiveBG cases work great. So maybe that this script is already "Isengard ready". |