[RELEASE] Random and last items smartplaylist script for Skins

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Sranshaft Offline
Posting Freak
Posts: 1,395
Joined: Dec 2008
Reputation: 24
Location: Melbourne, Australia
Post: #286
(2012-08-06 18:35)mikebzh44 Wrote:  @Sranshaft : I will have a look on it but it will take time as I think is due to JSON version in Frodo :

No worries mate. Just thought I'd check in. Like I said, everything other than music works flawlessly for now so I'm happy to live with the error until you have some more time for testing with Frodo.

[Image: all-thin-fanart.jpg]
find quote
Sranshaft Offline
Posting Freak
Posts: 1,395
Joined: Dec 2008
Reputation: 24
Location: Melbourne, Australia
Post: #287
@mikebzh44: Polite bump to ask if you've had any chance to update the script for Frodo. Due to recent changes regarding the duration field being changed to an integer instead of a string, the script is now throwing an error in Movies and TV shows as well now.

Code:
00:40:42 T:7796   ERROR: EXCEPTION: argument "value" for method "setProperty" must be unicode or str
00:40:42 T:7796   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.TypeError'>
                                            Error Contents: argument "value" for method "setProperty" must be unicode or str
                                            Traceback (most recent call last):
                                              File "C:\Users\Calvin\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandl​astitems.py", line 643, in <module>
                                                _getMovies()
                                              File "C:\Users\Calvin\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandl​astitems.py", line 191, in _getMovies
                                                _setProperty( "%s.%d.RunningTime" % ( PROPERTIE, _count ), runtime)
                                              File "C:\Users\Calvin\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandl​astitems.py", line 600, in _setProperty
                                                WINDOW.setProperty ( _property, _value )
                                            TypeError: argument "value" for method "setProperty" must be unicode or str
                                            -->End of Python script error report<--
00:40:42 T:7940   ERROR: EXCEPTION: argument "value" for method "setProperty" must be unicode or str
00:40:42 T:7940   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.TypeError'>
                                            Error Contents: argument "value" for method "setProperty" must be unicode or str
                                            Traceback (most recent call last):
                                              File "C:\Users\Calvin\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandl​astitems.py", line 648, in <module>
                                                _getEpisodesFromPlaylist()
                                              File "C:\Users\Calvin\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandl​astitems.py", line 288, in _getEpisodesFromPlaylist
                                                _setEpisodeProperties ( _episode, _count )
                                              File "C:\Users\Calvin\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandl​astitems.py", line 554, in _setEpisodeProperties
                                                _setProperty( "%s.%d.RunningTime"   % ( PROPERTIE, _count ), runtime)
                                              File "C:\Users\Calvin\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandl​astitems.py", line 600, in _setProperty
                                                WINDOW.setProperty ( _property, _value )
                                            TypeError: argument "value" for method "setProperty" must be unicode or str
                                            -->End of Python script error report<--

[Image: all-thin-fanart.jpg]
find quote
mikebzh44 Offline
Posting Freak
Posts: 1,559
Joined: Nov 2011
Reputation: 39
Location: Nantes - France
Post: #288
Yes, I have to work on Frodo Big Grin may be next week.

I was waiting because Martijn will might include some of the features in his script : script.skin.widgets

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

find quote
Sranshaft Offline
Posting Freak
Posts: 1,395
Joined: Dec 2008
Reputation: 24
Location: Melbourne, Australia
Post: #289
(2012-11-28 15:50)mikebzh44 Wrote:  Yes, I have to work on Frodo Big Grin may be next week.

I was waiting because Martijn will might include some of the features in his script : script.skin.widgets

Ah, sweet. It'd be to nice to have all of these features rolled into one script - it makes it easier to keep everything up to date - so here's to hoping that happens. Cheers for the update. Big Grin

[Image: all-thin-fanart.jpg]
find quote
Mudislander Offline
Skilled Skinner
Posts: 1,522
Joined: Jun 2009
Reputation: 33
Post: #290
Cool - Have started to add into Hybrid, mostly works but as mentioned in this thread already, Music kicks up an error.

Noli illegitimi carborundum
find quote
Martijn Offline
Team-XBMC
Posts: 10,306
Joined: Jul 2011
Reputation: 154
Location: Dawn of time
Post: #291
it will happen and hopefully with same speed increase Smile

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]
find quote
Sranshaft Offline
Posting Freak
Posts: 1,395
Joined: Dec 2008
Reputation: 24
Location: Melbourne, Australia
Post: #292
(2012-11-28 16:08)Martijn Wrote:  it will happen and hopefully with same speed increase Smile

awesome news mate. i hate to be that guy but any idea on a rough ETA?

[Image: all-thin-fanart.jpg]
find quote
RockDawg Offline
Posting Freak
Posts: 1,380
Joined: Jun 2005
Reputation: 1
Post: #293
Is this script deprecated now and everything included in skin.widgets?
find quote
mikebzh44 Offline
Posting Freak
Posts: 1,559
Joined: Nov 2011
Reputation: 39
Location: Nantes - France
Post: #294
No not for the moment but I have to make a Frodo release.

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

find quote
mad-max Offline
Posting Freak
Posts: 1,476
Joined: Jul 2010
Reputation: 55
Location: Germany
Post: #295
(2012-12-01 09:27)mikebzh44 Wrote:  No not for the moment but I have to make a Frodo release.
Any news on this?

I checked this thread and the skin.widgets thread...
Unfortunately the script is broken in the betas...

cheers,
mad-max

[Image: obi3o55x.jpg]
[Image: 7c8w3bu8.png]

- - - Tribute to Metallica - - -

If I managed to help you, please click my reputation
find quote
mikebzh44 Offline
Posting Freak
Posts: 1,559
Joined: Nov 2011
Reputation: 39
Location: Nantes - France
Post: #296
Yes, just have to find some spare time Wink

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

find quote
mad-max Offline
Posting Freak
Posts: 1,476
Joined: Jul 2010
Reputation: 55
Location: Germany
Post: #297
Yeah, I know that problem Wink

Thanks for the fast answer...

mad-max

[Image: obi3o55x.jpg]
[Image: 7c8w3bu8.png]

- - - Tribute to Metallica - - -

If I managed to help you, please click my reputation
find quote
mikebzh44 Offline
Posting Freak
Posts: 1,559
Joined: Nov 2011
Reputation: 39
Location: Nantes - France
Post: #298
Thanks to Martijn, script was adapted to Frodo.

And a lot of properties were added.

Martijn is still working on it but for skinners who want to test, new script can be downloaded here :

https://dl.dropbox.com/u/7435592/script....titems.zip

Look into code to see new properties but there are the same as in script.skin.widget.

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

find quote
Eisi2005 Offline
Fan
Posts: 693
Joined: Feb 2011
Reputation: 1
Location: Germany
Post: #299
@mike

a big big THANKS, i love it.
find quote
butchabay Online
Skilled Skinner
Posts: 3,677
Joined: Mar 2010
Reputation: 71
Location: Planet Crematoria
Post: #300
@mike

I get script failed ! lastandrandomitems.py

any idea?
find quote
Post Reply