Kodi Community Forum

Full Version: [RELEASE] Random and last items smartplaylist script for Skins
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Wow, that was fast ... Smile going to try it this evening.
Thanx.
@mikebzh44

with latest version and testfile i become this log file entry:

19:58:53 T:4380 NOTICE: ('[RandomAndLastItems] JSON RESULT ', {u'jsonrpc': u'2.0', u'id': None, u'error': {u'message': u'Parse error.', u'code': -32700}})
19:58:53 T:4380 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory": "Y:\Kinderfilme\Lazy Town\", "media": "video", "properties": ["year", "runtime", "file", "playcount", "rating", "plot", "fanart", "thumbnail", "trailer"]}, "id": 1}
19:58:53 T:4380 ERROR: JSONRPC: Failed to parse '{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory": "Y:\Kinderfilme\Lazy Town\", "media": "video", "properties": ["year", "runtime", "file", "playcount", "rating", "plot", "fanart", "thumbnail", "trailer"]}, "id": 1}'
19:58:53 T:4380 NOTICE: [RandomAndLastItems] ## MOVIESET Y:\Kinderfilme\Lazy Town\ COULD NOT BE LOADED ##
19:58:53 T:4380 NOTICE: ('[RandomAndLastItems] JSON RESULT ', {u'jsonrpc': u'2.0', u'id': None, u'error': {u'message': u'Parse error.', u'code': -32700}})
19:58:53 T:4380 INFO: -->Python script returned the following error<--
19:58:53 T:4380 ERROR: Error Type: <type 'exceptions.UnicodeEncodeError'>
19:58:53 T:4380 ERROR: Error Contents: 'ascii' codec can't encode character u'\xdf' in position 119: ordinal not in range(128)
19:58:53 T:4380 ERROR: Traceback (most recent call last):
File "C:\Users\AdminEisi2005\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 476, in <module>
_getMovies()
File "C:\Users\AdminEisi2005\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 82, in _getMovies
_json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory": "%s", "media": "video", "properties": ["year", "runtime", "file", "playcount", "rating", "plot", "fanart", "thumbnail", "trailer"]}, "id": 1}' %(_item['file']))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xdf' in position 119: ordinal not in range(128)
19:58:53 T:4380 INFO: -->End of Python script error report<--

Greets
Eisi
Could you send me your entire log on http://pastebin.com/ ?

Thanks
@mikebzh44
Thanx for the update all working !
Cheers
Good news.

I hope I will be able to fix Eisi2005 problem now.
@mikebzh44

i hope so too Smile

Logfile come when i´m at home.

Greets
Eisi
Which skin did you run ?

It strange because script is using your tvshow playlist Kinderseries.xsp but for finding movies :

Code:
line 82, in[b] _getMovies[/b]

It's like your give tvshow playlist to a movie menu Confused
i use glass skin to test the script. My Standard skin "AEON Nox" did not support TV Playlist at moment.

Greets
Eisi
Glass don't support tvshows playlist (in 2 days)
That could be the puzzle solution Smile

Sorry @mikebzh44 for the work.

Which skin support tv playlist to test the function ?

Greets
Eisi
Eisi2005 Wrote:That could be the puzzle solution Smile

Sorry @mikebzh44 for the work.

Which skin support tv playlist to test the function ?

Greets
Eisi

Why don't you just wait two days until it is in Glass.
Support added into Convergence. If script installed before adding playlist to home menu "should" automatically create the lists.

As usual bug reports and suggetions are welcome
Glass in two daysLaugh

Image
Eisi2005 Wrote:That could be the puzzle solution Smile

Sorry @mikebzh44 for the work.

Which skin support tv playlist to test the function ?

Greets
Eisi

one more Laugh Fusion Migma V2

Image
THX for all the infos

Greets
Eisi