2014-01-07, 12:50
There is no ERROR related to this script in the 2 debug log :S
(2014-01-07, 22:39)mikebzh44 Wrote: So move your playlist in skin folder and get the error in the debug log before to post it on xbmclogs
Thanks.
XBMC.RunScript(script.randomandlastitems,limit=6,method=Last,playlist=special://skin/playlists/Audiobooks.xsp,menu=Menu2)
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="albums">
<name>Audiobooks</name>
<match>one</match>
<rule field="genre" operator="contains">
<value>Audio Book</value>
</rule>
<rule field="genre" operator="contains">
<value>Audiobook</value>
</rule>
<rule field="genre" operator="contains">
<value>audiobook</value>
</rule>
<rule field="genre" operator="contains">
<value>audio book</value>
</rule>
<rule field="genre" operator="contains">
<value>AUDIOBOOK</value>
</rule>
<rule field="genre" operator="contains">
<value>AUDIO BOOK</value>
</rule>
<order direction="ascending">album</order>
</smartplaylist>
<item>
<label>$INFO[Window.Property(PlaylistLastMusicMenu2.1.Title)]</label>
<label2>$INFO[Window.Property(PlaylistLastMusicMenu2.1.Artist)]</label2>
<onclick>PlayList.Clear</onclick>
<onclick>PlayMedia("$INFO[Window.Property(PlaylistLastMusicMenu2.1.Play)]")</onclick>
<icon>-</icon>
<thumb>$INFO[Window.Property(PlaylistLastMusicMenu2.1.Thumb)]</thumb>
</item>
ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.KeyError'>
Error Contents: ('artistid',)
Traceback (most recent call last):
File "/home/pi/.xbmc/addons/script.randomandlastitems/randomandlastitems.py", line 851, in <module>
_getAlbumsFromPlaylist()
File "/home/pi/.xbmc/addons/script.randomandlastitems/randomandlastitems.py", line 532, in _getAlbumsFromPlaylist
_artistid = _result[0]['artistid']
KeyError: ('artistid',)
-->End of Python script error report<--
<rule field="inprogress" operator="true" />
09:11:56 T:6936 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.AttributeError'>
Error Contents: 'NoneType' object has no attribute 'nodeValue'
Traceback (most recent call last):
File "S:\Users\Administrator\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 723, in <module>
_parse_argv()
File "S:\Users\Administrator\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 644, in _parse_argv
_getPlaylistType ();
File "S:\Users\Administrator\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 57, in _getPlaylistType
_name = _doc.getElementsByTagName('name')[0].firstChild.nodeValue.encode('utf-8')
AttributeError: 'NoneType' object has no attribute 'nodeValue'
-->End of Python script error report<--
<onload condition="System.HasAddon(script.randomandlastitems) + !IsEmpty(skin.string(fav101.path)) + SubString(skin.string(mfvpl101_list),latest)">RunScript(script.randomandlastitems,limit=12,method=Last,playlist=$INFO[Skin.String(fav101.path)],menu=Menu101)</onload>
<onload condition="System.HasAddon(script.randomandlastitems) + !IsEmpty(skin.string(fav101.path)) + SubString(skin.string(mfvpl101_list),random)">RunScript(script.randomandlastitems,limit=12,method=Random,playlist=special://masterprofile/playlists/video/Film_Action.xsp,menu=Menu101, daemon=True)</onload>
skin.ace.fav101.path">ActivateWindow(10025,videodb://1/1/1/,return)
11:37:36 T:5108 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IOError'>
Error Contents: (22, "invalid mode ('rb') or filename", 'ActivateWindow(10025,videodb://1/1/1/,return)')
Traceback (most recent call last):
File "S:\Users\Administrator\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 723, in <module>
_parse_argv()
File "S:\Users\Administrator\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 644, in _parse_argv
_getPlaylistType ();
File "S:\Users\Administrator\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 46, in _getPlaylistType
_doc = parse(xbmc.translatePath(PLAYLIST))
File "S:\Program Files\XBMC\system\python\Lib\xml\dom\minidom.py", line 1918, in parse
return expatbuilder.parse(file)
File "S:\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,videodb://1/1/1/,return)')
-->End of Python script error report<--
<onclick>ActivateWindow(10025,videodb://1/1/1/)</onclick>
09:11:56 T:6936 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.AttributeError'>
Error Contents: 'NoneType' object has no attribute 'nodeValue'
Traceback (most recent call last):
File "S:\Users\Administrator\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 723, in <module>
_parse_argv()
File "S:\Users\Administrator\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 644, in _parse_argv
_getPlaylistType ();
File "S:\Users\Administrator\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 57, in _getPlaylistType
_name = _doc.getElementsByTagName('name')[0].firstChild.nodeValue.encode('utf-8')
AttributeError: 'NoneType' object has no attribute 'nodeValue'
-->End of Python script error report<--
(2014-02-03, 10:42)mikebzh44 Wrote: Hi Mike, got a question, any idea what this error is about?
I'm trying to create Latest/random genre movies, e.g latest action movies
Code:09:11:56 T:6936 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.AttributeError'>
Error Contents: 'NoneType' object has no attribute 'nodeValue'
Traceback (most recent call last):
File "S:\Users\Administrator\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 723, in <module>
_parse_argv()
File "S:\Users\Administrator\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 644, in _parse_argv
_getPlaylistType ();
File "S:\Users\Administrator\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 57, in _getPlaylistType
_name = _doc.getElementsByTagName('name')[0].firstChild.nodeValue.encode('utf-8')
AttributeError: 'NoneType' object has no attribute 'nodeValue'
-->End of Python script error report<--
Please paste here the content of your XSP file.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="movies">
<name></name>
<match>all</match>
<rule field="genre" operator="is">
<value>Action</value>
</rule>
</smartplaylist>