[RELEASE] Random and last items smartplaylist script for Skins

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
mikebzh44 Offline
Posting Freak
Posts: 1,118
Joined: Nov 2011
Reputation: 21
Location: Nantes - France
Post: #271
I wasn't talking about your request but about JSON query (bad translation for me) Tongue

TVShows is the most esay thing to do. I think that before 4:00 PM (French time) I can send you a beta release (send me your email by PM).

For seasons, I have to wait this week-end as on my test PC, I don't have multi-seasons TV Shows (only last season for each TV show) and there is no GetSeasonDetails JSON function so I will have to loop on GetSeasons JSON function result.

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

find quote
butchabay Offline
Skilled Skinner
Posts: 3,444
Joined: Mar 2010
Reputation: 62
Location: Switzerland
Post: #272
Smile

Sent ...

Thanx
find quote
LARQ Offline
Junior Member
Posts: 22
Joined: Mar 2012
Reputation: 0
Post: #273
I really dont know how to start with this script.
Where should i put the file? or the script.randomandlastitems folder?
im using aeon mq3 i id like to see the recent/random widget on my smartlists? is it possible?
Thanks for the help. Newbie on this Sad
find quote
mikebzh44 Offline
Posting Freak
Posts: 1,118
Joined: Nov 2011
Reputation: 21
Location: Nantes - France
Post: #274
This script have to be include by the skinner so ask to Aeon MQ3 skinner to use this script and it's properties to display smart playlists informations.

Or use an other skin like Glass, Aeon Nox 3.5 (still in developpment) or some skin of Butchabay (see his signature above) or Mudislander : http://forum.xbmc.org/showthread.php?tid=99839

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

find quote
Sranshaft Online
Posting Freak
Posts: 1,336
Joined: Dec 2008
Reputation: 19
Location: Melbourne, Australia
Post: #275
Getting the following error when using Music > Songs smartplaylists and Frodo nightly. Looks to be an issue with the JSON call? Any ideas? Big Grin

Code:
00:37:36 T:9056   ERROR: Error Contents: ('artistid',)
00:37:36 T:9056   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Calvin\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandl​astitems.py", line 619, in <module>
                                                _getAlbumsFromPlaylist()
                                              File "C:\Users\Calvin\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandl​astitems.py", line 387, in _getAlbumsFromPlaylist
                                                _artistid = _file['artistid']
                                            KeyError: ('artistid',)

[Image: all-thin-fanart.jpg]
(This post was last modified: 2012-08-04 16:42 by Sranshaft.)
find quote
mikebzh44 Offline
Posting Freak
Posts: 1,118
Joined: Nov 2011
Reputation: 21
Location: Nantes - France
Post: #276
Don't use Frodo for the moment.

I will install it on my laptop for testing.

Thanks.

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

find quote
Martijn Offline
Team-XBMC
Posts: 7,787
Joined: Jul 2011
Reputation: 116
Location: Dawn of time
Post: #277
(2012-08-04 16:42)Sranshaft Wrote:  Getting the following error when using Music > Songs smartplaylists and Frodo nightly. Looks to be an issue with the JSON call? Any ideas? Big Grin

Are you using a nightly "XBMCSetup-20120803-ef5fd1c-master" ?
Revert to an older one. Got some other problems as well using that

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first


For your mediacenter artwork go to
[Image: fanarttv.png]
(This post was last modified: 2012-08-04 19:53 by Martijn.)
find quote
Sranshaft Online
Posting Freak
Posts: 1,336
Joined: Dec 2008
Reputation: 19
Location: Melbourne, Australia
Post: #278
(2012-08-04 19:26)mikebzh44 Wrote:  Don't use Frodo for the moment.

I will install it on my laptop for testing.

Thanks.

Need to use Frodo for some of the features added for the skin Im working on. Everything else works in regards to movies and episodes, its just with music that I'm getting the error.

Thanks for looking into it and for the nice script. it's exactly what i needed.

(2012-08-04 19:33)Martijn Wrote:  Are you using a nightly "XBMCSetup-20120803-ef5fd1c-master" ?
Revert to an older one. Got some other problems as well using that

No, using the build from July 20th. Thanks for the heads up though about the new build. I was just about to update.

[Image: all-thin-fanart.jpg]
find quote
relayer35 Offline
Senior Member
Posts: 143
Joined: Jan 2010
Reputation: 0
Post: #279
Having a problem since upgrading skin to Aeon Nox 3.5, with a script error for randomandlastitems.py every time XBMC starts. Debug log here:

http://relayer35.com/xbmc.zip
find quote
mikebzh44 Offline
Posting Freak
Posts: 1,118
Joined: Nov 2011
Reputation: 21
Location: Nantes - France
Post: #280
Issue is not due to script but to filesystem :

Code:
14:47:10 T:5828    INFO: -->Python script returned the following error<--
14:47:10 T:5828   ERROR: Error Type: <type 'exceptions.IOError'>
14:47:10 T:5828   ERROR: Error Contents: (22, "invalid mode ('rb') or filename", 'ActivateWindow(10025,"K:\\Video Camera",return)')
14:47:10 T:4148   DEBUG: VideoInfoScanner: No (new) information was found in dir M:\Videos 4\TV\Chuck\
14:47:10 T:5828   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 607, in <module>
                                                _parse_argv()
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 601, in _parse_argv
                                                _getPlaylistType ();
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 47, in _getPlaylistType
                                                _doc = parse(xbmc.translatePath(PLAYLIST))
                                              File "C:\Program Files\XBMC\system\python\Lib\xml\dom\minidom.py", line 1918, in parse
                                                return expatbuilder.parse(file)
                                              File "C:\Program Files\XBMC\system\python\Lib\xml\dom\expatbuilder.py", line 922, in parse
                                                fp = open(file, 'rb')
                                            IOError: (22, "invalid mode ('rb') or filename", 'ActivateWindow(10025,"K:\\Video Camera",return)')
14:47:10 T:5828    INFO: -->End of Python script error report<--
As you can see, you have made a smart playlist for Video Camera and there is some rights problem.

Does your smart playlist can be browse within XBMC ?

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

find quote
Post Reply