Kodi Community Forum
[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 - Livin - 2015-08-09

I'm running Aeon MQ 5 isengard update, on both Windows and Android (firetv)

Windows works fine, Android gets an error in the top status bar. Doesn't say what the issue is.

Is there an update for this script for Android?

Thx


RE: [RELEASE] Random and last items smartplaylist script for Skins - peehoo - 2015-11-22

Installation gives me error of dependencies... Windows 8.1 & Kodi 15.2.


RE: [RELEASE] Random and last items smartplaylist script for Skins - mikebzh44 - 2015-11-23

Enable debug mode in Kodi settings
Try to install the script (are you using ZIP file ?)
Post kodi.log file content on pastebin.com or xbmclogs.com and share URL here


RE: [RELEASE] Random and last items smartplaylist script for Skins - peehoo - 2015-11-23

Yeah... I'll do that... However Aeon MQ 6 gives same error and don't know what causes it... But I've manually installed almost every supported scripts...

This is error at MQ 6 installation:

Image


RE: [RELEASE] Random and last items smartplaylist script for Skins - gates - 2015-11-23

Hi Peehoo,

service.library.data.provider is not Random and last items smartplaylist script


RE: [RELEASE] Random and last items smartplaylist script for Skins - mikebzh44 - 2015-11-23

That's right. Nothing to do with script.randomandlastitems

Get latest script.library.data.provider from GITHUB :

https://github.com/BigNoid/service.library.data.provider

or submit this issue on Aeon MQ subforum.


RE: [RELEASE] Random and last items smartplaylist script for Skins - peehoo - 2015-11-23

Here is debug log for:

http://goo.gl/4RRTgU


RE: [RELEASE] Random and last items smartplaylist script for Skins - ronie - 2015-11-23

(2015-11-23, 15:59)peehoo Wrote: Here is debug log for:

http://goo.gl/4RRTgU

you're trying to install a very old version which isn't supported anymore.

you'll have more luck if you get 2.2.2 here:
http://mirrors.xbmc.org/addons/gotham/script.randomandlastitems/


RE: [RELEASE] Random and last items smartplaylist script for Skins - peehoo - 2015-11-23

Now I manually installed (copied) MQ6 skin and got it working but now I still have a uncertain feeling that everything is ok and I have all addons for needing this run correctly.


RE: [RELEASE] Random and last items smartplaylist script for Skins - Livin - 2015-12-31

I get an error with every since load. Debug log excerpt...

ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'xml.parsers.expat.ExpatError'>
Error Contents: not well-formed (invalid token): line 36, column 82
Traceback (most recent call last):
File "C:\Users\media\Documents\kodi\portable_data\addons\script.randomandlastitems\randomandlastitems.py", line 842, in <module>
_parse_argv()
File "C:\Users\media\Documents\kodi\portable_data\addons\script.randomandlastitems\randomandlastitems.py", line 763, in _parse_argv
_getPlaylistType ();
File "C:\Users\media\Documents\kodi\portable_data\addons\script.randomandlastitems\randomandlastitems.py", line 42, in _getPlaylistType
_doc = parse(xbmc.translatePath(PLAYLIST))
File "C:\Users\media\Documents\kodi\system\python\Lib\xml\dom\minidom.py", line 1918, in parse
return expatbuilder.parse(file)
File "C:\Users\media\Documents\kodi\system\python\Lib\xml\dom\expatbuilder.py", line 924, in parse
result = builder.parseFile(fp)
File "C:\Users\media\Documents\kodi\system\python\Lib\xml\dom\expatbuilder.py", line 207, in parseFile
parser.Parse(buffer, 0)
ExpatError: not well-formed (invalid token): line 36, column 82
-->End of Python script error report<--
20:17:29 T:4720 DEBUG: Random and Last items script: [RandomAndLastItems] # 01 # PLAYLIST special://profile/playlists/video/KidsTV.xsp COULD NOT BE LOADED ##
20:17:29 T:4720 DEBUG: Random and Last items script: [RandomAndLastItems] JSON RESULT {u'jsonrpc': u'2.0', u'id': 1, u'result': {u'limits': {u'start': 0, u'total': 0, u'end': 0}}}
20:17:29 T:5128 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
20:17:29 T:4520 DEBUG: Library Data Provider: script version 0.1.3 started
20:17:29 T:4720 DEBUG: Random and Last items script: Loading PlaylistRandomEpisode started at 2015-12-30 20:17:28 and take 1.146s
20:17:29 T:4720 INFO: CPythonInvoker(18, C:\Users\media\Documents\kodi\portable_data\addons\script.randomandlastitems\randomandlastitems.py): script successfully run
20:17:29 T:5292 DEBUG: Library Data Provider: script version 0.1.3 started
20:17:29 T:4520 DEBUG: Library Data Provider: script version 0.1.3 stopped
20:17:29 T:4520 INFO: CPythonInvoker(21, C:\Users\media\Documents\kodi\portable_data\addons\service.library.data.provider\default.py): script successfully run
20:17:29 T:5560 INFO: Python script stopped
20:17:29 T:5560 DEBUG: Thread LanguageInvoker 5560 terminating
20:17:29 T:5292 DEBUG: Library Data Provider: script version 0.1.3 stopped
20:17:29 T:5292 INFO: CPythonInvoker(23, C:\Users\media\Documents\kodi\portable_data\addons\service.library.data.provider\default.py): script successfully run
20:17:29 T:5668 DEBUG: script.favourites: script version 6.0.3 started
20:17:29 T:5668 DEBUG: script.favourites: ### params: {}


RE: [RELEASE] Random and last items smartplaylist script for Skins - mikebzh44 - 2015-12-31

Could you please give us the content of the smart playlist file : special://profile/playlists/video/KidsTV.xsp

See you in 2016 Wink


RE: [RELEASE] Random and last items smartplaylist script for Skins - Livin - 2016-01-01

(2015-12-31, 18:02)mikebzh44 Wrote: Could you please give us the content of the smart playlist file : special://profile/playlists/video/KidsTV.xsp

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="tvshows">
<name>Kids TV</name>
<match>all</match>
<rule field="path" operator="contains">/kids tv</rule>
<order direction="ascending">title</order>
</smartplaylist>



RE: [RELEASE] Random and last items smartplaylist script for Skins - mikebzh44 - 2016-01-01

Your smart playlist file looks OK.

Could you try with a playlist stored in C:\Users\media\Documents\kodi\portable_data\playlists\video and not in your Kodi profile folder ?


RE: [RELEASE] Random and last items smartplaylist script for Skins - marantz - 2016-07-28

hello, anyone tested this with krypton?


I get CScriptInvocationManager::ExecuteAsync - Not executing non-existing script script.randomandlastitems

even though it seem to have loaded fine.

DEBUG: ADDON: cpluff: 'Plug-in script.randomandlastitems has been installed.'

full debug below

http://pastebin.ca/3667236


RE: [RELEASE] Random and last items smartplaylist script for Skins - marantz - 2016-07-28

perhaps becouse of this?

the method to set container properties, setProperty(), in the WindowXML class has been renamed to:
setContainerProperty()

http://forum.kodi.tv/member.php?action=profile&uid=42570


This forum uses Lukasz Tkacz MyBB addons.