Kodi Community Forum
[RELEASE] Random and last items smartplaylist script for Skins - Printable Version

+- Kodi Community Forum (http://forum.kodi.tv)
+-- 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)



- butchabay - 2012-02-28 17:08

Wow, that was fast ... Smile going to try it this evening.
Thanx.


- Eisi2005 - 2012-02-28 23:11

@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\ran​domandlastitems.py", line 476, in <module>
_getMovies()
File "C:\Users\AdminEisi2005\AppData\Roaming\XBMC\addons\script.randomandlastitems\ran​domandlastitems.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


- mikebzh44 - 2012-02-28 23:48

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

Thanks


- butchabay - 2012-02-29 11:53

@mikebzh44
Thanx for the update all working !
Cheers


- mikebzh44 - 2012-02-29 12:52

Good news.

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


- Eisi2005 - 2012-02-29 13:03

@mikebzh44

i hope so too Smile

Logfile come when i´m at home.

Greets
Eisi


- mikebzh44 - 2012-02-29 13:42

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 Frown


- Eisi2005 - 2012-02-29 14:00

i use glass skin to test the script. My Standard skin "AEON Nox" did not support TV Playlist at moment.

Greets
Eisi


- fmronan - 2012-02-29 14:05

Glass don't support tvshows playlist (in 2 days)


- Eisi2005 - 2012-02-29 14:30

That could be the puzzle solution Smile

Sorry @mikebzh44 for the work.

Which skin support tv playlist to test the function ?

Greets
Eisi


- Martijn - 2012-02-29 14:52

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.


- Mudislander - 2012-02-29 14:53

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


- fmronan - 2012-02-29 14:56

Glass in two daysLaugh

[Image: 1330520125-screenshot004.png]


- butchabay - 2012-02-29 14:59

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: cVFxS.jpg]


- Eisi2005 - 2012-02-29 15:07

THX for all the infos

Greets
Eisi