[RELEASE] Random and last items smartplaylist script for Skins

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
relayer35 Offline
Senior Member
Posts: 143
Joined: Jan 2010
Reputation: 0
Post: #281
(2012-08-05 10:33)mikebzh44 Wrote:  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 ?

I didn't intentionally create a smart playlist for Video Camera. I added a favorite to the K:\Video Camera folder, and added that as a custom entry on the main menu. The error only happens with Aeon Nox 3.5. What can I do to delete this phantom playlist?
find quote
mikebzh44 Offline
Posting Freak
Posts: 1,118
Joined: Nov 2011
Reputation: 21
Location: Nantes - France
Post: #282
And you are using a widget attach to your favorite on the custom menu.

Should delete the widget.

Ask on Aeon Nox 3.5 thread Wink

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

find quote
mikebzh44 Offline
Posting Freak
Posts: 1,118
Joined: Nov 2011
Reputation: 21
Location: Nantes - France
Post: #283
Version 1.2.5 released :

- [Add] New properties TVShowThumb and TVShowFanart to get TV Show thumbnail and fanart of the episode

Playlist<method>Episode<menu>.<# of episode>.TVShowFanart = TV Show fanart for episode N°#
Playlist<method>Episode<menu>.<# of episode>.TVShowThumb = TV Show thumbnail for episode N°#

Available on Passion-XMC repository and soon on official repository.

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: #284
@mikebzh: Any chance you had some time to figure out what was causing the error when using Song playlists?

[Image: all-thin-fanart.jpg]
find quote
mikebzh44 Offline
Posting Freak
Posts: 1,118
Joined: Nov 2011
Reputation: 21
Location: Nantes - France
Post: #285
@Sranshaft : I will have a look on it but it will take time as I think is due to JSON version in Frodo :

http://forum.xbmc.org/showthread.php?tid...pid1163499

So I have to install Frodo and test my script.

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: #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 Online
Posting Freak
Posts: 1,336
Joined: Dec 2008
Reputation: 19
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,118
Joined: Nov 2011
Reputation: 21
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 Online
Posting Freak
Posts: 1,336
Joined: Dec 2008
Reputation: 19
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,183
Joined: Jun 2009
Reputation: 20
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
Post Reply