[RELEASE] Random and last items smartplaylist script for Skins

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
mikebzh44 Online
Posting Freak
Posts: 1,787
Joined: Nov 2011
Reputation: 48
Location: Nantes - France
Post: #241
Good news !

Thanks Martijn.

Sorry for my english, but, you know, I'm French so ...

find quote
mrpeterparker Offline
Member
Posts: 90
Joined: Jan 2011
Reputation: 0
Post: #242
thanks
find quote
mikebzh44 Online
Posting Freak
Posts: 1,787
Joined: Nov 2011
Reputation: 48
Location: Nantes - France
Post: #243
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.

Sorry for my english, but, you know, I'm French so ...

find quote
mrpeterparker Offline
Member
Posts: 90
Joined: Jan 2011
Reputation: 0
Post: #244
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}}})
find quote
fmronan Offline
Fan
Posts: 600
Joined: Dec 2010
Reputation: 4
Post: #245
Why "_" before ANIME?
find quote
mrpeterparker Offline
Member
Posts: 90
Joined: Jan 2011
Reputation: 0
Post: #246
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>
(This post was last modified: 2012-06-26 16:26 by mrpeterparker.)
find quote
mikebzh44 Online
Posting Freak
Posts: 1,787
Joined: Nov 2011
Reputation: 48
Location: Nantes - France
Post: #247
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...pid1017823

Sorry for my english, but, you know, I'm French so ...

find quote
mikebzh44 Online
Posting Freak
Posts: 1,787
Joined: Nov 2011
Reputation: 48
Location: Nantes - France
Post: #248
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

Sorry for my english, but, you know, I'm French so ...

find quote
mrpeterparker Offline
Member
Posts: 90
Joined: Jan 2011
Reputation: 0
Post: #249
(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
find quote
mrpeterparker Offline
Member
Posts: 90
Joined: Jan 2011
Reputation: 0
Post: #250
is there a method of uninstalling this add-on to test... ( can't seem to find it enabled add-ons )
find quote
fmronan Offline
Fan
Posts: 600
Joined: Dec 2010
Reputation: 4
Post: #251
I saw that you've make somes change in $VAR[MusicFanartVar], but it still does not work for meFrown
find quote
mikebzh44 Online
Posting Freak
Posts: 1,787
Joined: Nov 2011
Reputation: 48
Location: Nantes - France
Post: #252
Just remove or rename the directory.

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

Sorry for my english, but, you know, I'm French so ...

find quote
fmronan Offline
Fan
Posts: 600
Joined: Dec 2010
Reputation: 4
Post: #253
oups wrong post, sorry
find quote
denywinarto Offline
Senior Member
Posts: 248
Joined: Jun 2012
Reputation: 0
Post: #254
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
(This post was last modified: 2012-07-03 12:09 by denywinarto.)
find quote
mikebzh44 Online
Posting Freak
Posts: 1,787
Joined: Nov 2011
Reputation: 48
Location: Nantes - France
Post: #255
Could you post Film_Barat.xsp on http://xbmclogs.com/? please.

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

Sorry for my english, but, you know, I'm French so ...

find quote
Post Reply