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

+- XBMC Community Forum (http://forum.xbmc.org)
+-- 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)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49


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

(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.


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - Sranshaft - 2012-11-28 15:45

@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<--



RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - mikebzh44 - 2012-11-28 15:50

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


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - Sranshaft - 2012-11-28 15:54

(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


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - Mudislander - 2012-11-28 15:58

Cool - Have started to add into Hybrid, mostly works but as mentioned in this thread already, Music kicks up an error.


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - Martijn - 2012-11-28 16:08

it will happen and hopefully with same speed increase Smile


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - Sranshaft - 2012-11-28 16:47

(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?


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - RockDawg - 2012-12-01 05:51

Is this script deprecated now and everything included in skin.widgets?


Re: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - mikebzh44 - 2012-12-01 09:27

No not for the moment but I have to make a Frodo release.


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - mad-max - 2012-12-10 11:04

(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


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

Yes, just have to find some spare time Wink


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - mad-max - 2012-12-10 17:38

Yeah, I know that problem Wink

Thanks for the fast answer...

mad-max


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - mikebzh44 - 2012-12-17 14:46

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.randomandlastitems.zip

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


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - Eisi2005 - 2012-12-17 16:25

@mike

a big big THANKS, i love it.


RE: [RELEASE] Random and last items of video smartplaylist script for Skins / Skinners - butchabay - 2012-12-17 22:03

@mike

I get script failed ! lastandrandomitems.py

any idea?