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 of video smartplaylist script for Skins / Skinners - mikebzh44 - 2012-06-13

Good news !

Thanks Martijn.


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - mrpeterparker - 2012-06-14

thanks


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - mikebzh44 - 2012-06-21

Version 1.2.4 released

v1.2.4
- [Fix] Albums properties were not cleared properly
- [Add] New property AlbumDesc

Playlist<method>Music<menu>.<# of album>.AlbumDesc = Album N°# description

Will be available soon on official repository.


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - mrpeterparker - 2012-06-26

has anyone ever seen this?

09:11:42 T:1296 WARNING: Unknown sort method 0
09:11:45 T:3048 WARNING: Previous line repeats 27 times.
09:11:45 T:3048 NOTICE: [RandomAndLastItems] ## PLAYLIST special://profile/playlists/video/_ANIME.xsp COULD NOT BE LOADED ##
09:11:45 T:3048 NOTICE: ('[RandomAndLastItems] JSON RESULT ', {u'jsonrpc': u'2.0', u'id': 1, u'result': {u'limits': {u'start': 0, u'total': 0, u'end': 0}}})
09:11:45 T:3048 WARNING: Unknown sort method 0
09:11:45 T:1296 WARNING: Previous line repeats 3 times.
09:11:45 T:1296 NOTICE: Loading PlaylistLastMovie started at 2012-06-26 09:10:07 and take 1.637m
09:11:45 T:3048 WARNING: Unknown sort method 0
09:11:45 T:3048 WARNING: Previous line repeats 4 times.
09:11:45 T:3048 NOTICE: [RandomAndLastItems] ## PLAYLIST special://profile/playlists/video/_ANIME.xsp COULD NOT BE LOADED ##
09:11:45 T:3048 NOTICE: ('[RandomAndLastItems] JSON RESULT ', {u'jsonrpc': u'2.0', u'id': 1, u'result': {u'limits': {u'start': 0, u'total': 0, u'end': 0}}})


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - fmronan - 2012-06-26

Why "_" before ANIME?


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - mrpeterparker - 2012-06-26

that's just how i name things.

what's weird is that it works sometimes... and borks out others

Quote:<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="tvshows">
<name>Anime</name>
<match>one</match>
<rule field="path" operator="startswith">smb://server/_ANIME/</rule>
<order direction="ascending">tvshow</order>
</smartplaylist>



RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - mikebzh44 - 2012-06-26

Same NOTICE in LOG :

Code:
16:26:55 T:2688  NOTICE: [RandomAndLastItems] ## PLAYLIST  COULD NOT BE LOADED ##
16:26:55 T:1212  NOTICE: [RandomAndLastItems] ## PLAYLIST  COULD NOT BE LOADED ##
16:26:55 T:2420  NOTICE: [RandomAndLastItems] ## PLAYLIST special://profile/playlists/music/U2.xsp COULD NOT BE LOADED ##
16:26:56 T:4060  NOTICE: [RandomAndLastItems] ## PLAYLIST special://profile/playlists/video/cartoons.xsp COULD NOT BE LOADED ##

but everything is OK

I think it's due to JSON security :

http://forum.xbmc.org/showthread.php?tid=68263&pid=1017823#pid1017823


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - mikebzh44 - 2012-06-26

I'm mistaken.

I get this NOTICE because I'm on my office PC and my library is empty so cartoons.xsp cannot be loaded because there is no movies to display.

On default skin Confluence, can you browse your smart playlists ?

Video > Library > Playlists > Anime


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - mrpeterparker - 2012-06-26

(2012-06-26, 16:51)mikebzh44 Wrote: I'm mistaken.

I get this NOTICE because I'm on my office PC and my library is empty so cartoons.xsp cannot be loaded because there is no movies to display.

On default skin Confluence, can you browse your smart playlists ?

Video > Library > Playlists > Anime

i'm actually starting to think it's more of an MySQL problem... my log is flooded with

Quote:09:59:08 T:3924 ERROR: Unable to open database: nguyencongvideo64 [2003](Can't connect to MySQL server on '192.168.1.137' (10055))
09:59:08 T:3924 ERROR: Previous line repeats 1 times.
09:59:08 T:3924 ERROR: Unable to open database: nguyencongvideo63 [2003](Can't connect to MySQL server on '192.168.1.137' (10055))
09:59:08 T:3924 ERROR: Unable to open database: nguyencongvideo62 [2003](Can't connect to MySQL server on '192.168.1.137' (10055))

that continues down to video01 and tries again back @ 64


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - mrpeterparker - 2012-06-26

is there a method of uninstalling this add-on to test... ( can't seem to find it enabled add-ons )


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - fmronan - 2012-06-26

I saw that you've make somes change in $VAR[MusicFanartVar], but it still does not work for meConfused


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - mikebzh44 - 2012-06-26

Just remove or rename the directory.

On Windows XP : C:\Documents and Settings\<user>\Application Data\XBMC\addons\script.randomandlastitems


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - fmronan - 2012-06-26

oups wrong post, sorry


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - denywinarto - 2012-07-03

Hi, thanks for this script,
but there's a small problem, i'm getting that parse error script, here's what it looks like :
Code:
16:59:54 T:30184   ERROR: JSONRPC: Failed to parse '{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory": "C:\Users\DENY\AppData\Roaming\XBMC\userdata\playlists\video\Film_Barat.xsp", "media": "video", "properties": ["year", "runtime", "file", "playcount", "rating", "plot", "fanart", "thumbnail", "trailer", "streamdetails"]}, "id": 1}'
16:59:54 T:30184  NOTICE: [RandomAndLastItems] ## PLAYLIST C:\Users\DENY\AppData\Roaming\XBMC\userdata\playlists\video\Film_Barat.xsp COULD NOT BE LOADED ##
16:59:54 T:30184  NOTICE: ('[RandomAndLastItems] JSON RESULT ', {u'jsonrpc': u'2.0', u'id': None, u'error': {u'message': u'Parse error.', u'code': -32700}})
16:59:54 T:30184  NOTICE: Loading PlaylistLastMovieMenu1 started at 2012-07-03 16:59:54 and take 0.301s
17:00:05 T:28948  NOTICE: Storing total System Uptime
17:00:05 T:28948  NOTICE: Saving settings
17:00:05 T:28948  NOTICE: stop all

I have 2 custom home menus, asian and west movies
Because of this i can't separate recently added asian and west,
That playlist (Film_Barat.xsp) works fine in transparency..
I'd appreciate if you could help me.. Just need this to get my mod done Smile



RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - mikebzh44 - 2012-07-03

Could you post Film_Barat.xsp on http://xbmclogs.com/? please.

When you browser this smart playlist, movies are displayed in XBMC ?