2017-03-25, 04:11
(2017-03-19, 20:28)brun595 Wrote: I am making on my own skin and have Skin Shortcuts integrated into my skin already (running the latest version of Krypton), but am stuck trying to create a button within SkinSettings.xml that will allow the user to change the background of each of the different menu items set (outside of the management dialog). I will have one button for a single image background, and another for a multi-image background. Creating the button is not the problem, but the <onclick> part of the button is however. I have read through all the docmentation multiple times and come up with what I have below (which is obviously not correct)
<onclick>RunScript(script.skinshortcuts,type=property&property=background&value=??&labelID=mainmenu)</onclick>
<onclick>310</onclick>
For reference, I have a button in the management dialog to change the background for each main menu entry, but I am trying to make another tab in SkinSettings.xml to allow changing the same main menu backgrounds. Any help would be greatly appreciated!
You would need to know the labelID of each menu item that you want to edit - which will, of course, change when the user edits the menu item. If you do know the menu item, then just put its labelID in the labelID parameter. So, to set the background property of the menu item with the labelID 'movies', you'd use labelID=movies. It's worth noting, though, the functions for modifying properties outside of the management dialog are there to set a variety of properties for the default items your skin provides and are not suitable for modifying properties of a customised menu.
(2017-03-19, 22:01)Guilouz Wrote: Issue when creating a new action with source folder :
Code:20:57:20.335 T:123145440845824 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnicodeDecodeError'>
Error Contents: 'ascii' codec can't decode byte 0xc3 in position 13: ordinal not in range(128)
Traceback (most recent call last):
File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skinshortcuts/resources/lib/gui.py", line 1871, in onClick
selectedShortcut = LIBRARY.selectShortcut()
File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skinshortcuts/resources/lib/library.py", line 1994, in selectShortcut
return self.selectShortcut( group = group, grouping = grouping, custom = custom, showNone = showNone, currentAction = currentAction )
File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skinshortcuts/resources/lib/library.py", line 1994, in selectShortcut
return self.selectShortcut( group = group, grouping = grouping, custom = custom, showNone = showNone, currentAction = currentAction )
File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skinshortcuts/resources/lib/library.py", line 2033, in selectShortcut
selectedShortcut = self._sourcelink_choice( selectedShortcut )
File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skinshortcuts/resources/lib/library.py", line 1800, in _sourcelink_choice
filename = self._build_playlist( selectedShortcut.getProperty( "location" ), mediaType, selectedShortcut.getLabel(), negative )
File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skinshortcuts/resources/lib/library.py", line 1846, in _build_playlist
tree.write( os.path.join( DATAPATH, str( id ) + ".xsp" ), encoding="utf-8" )
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target-debug/lib/python2.7/xml/etree/ElementTree.py", line 820, in write
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target-debug/lib/python2.7/xml/etree/ElementTree.py", line 939, in _serialize_xml
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target-debug/lib/python2.7/xml/etree/ElementTree.py", line 939, in _serialize_xml
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target-debug/lib/python2.7/xml/etree/ElementTree.py", line 937, in _serialize_xml
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target-debug/lib/python2.7/xml/etree/ElementTree.py", line 1073, in _escape_cdata
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 13: ordinal not in range(128)
-->End of Python script error report<--
xsp file is correctly created but it's not full :
Code:<smartplaylist type="movies">
<name>Films UHD</name>
<match>one</match>
<rule field="path" operator="startswith">
<value>
I know I've said this to you before, but I'll say it one last time - and it's even more relevant at present with just how limited my time is at present - but I need a FULL debug log before I will look into issues. If you can't provide a full - and clean - debug log, then I'm really not interested.
(2017-03-21, 14:38)jurialmunkey Wrote: Is there any way to create widget templates for a group that is *NOT* the mainmenu or submenu and *NOT* on the home screen??
I want to create a widget template for a hub window so that the widget can change depending on which hub item is focussed without reloading every time. Because the number of items can change, I can't just make X number of hidden widgets with conditional visibility based upon focused item.
It's not something I've ever tried, and I'm basing this not on experience but on how the code works (which, with all those surprises that code regularly turns up, means It probably won't work as expected) but IF you know the labelID of the menu you're building then any submenu or submenuOther template should work if you specify the 'name' parameter to the additional menu you want to build against.
My apologies to you and Braz - I know you both have reported bugs which really need fixing. Whilst my time at present is ridiculously limited, I'm going to do my best to have the fixes on git on Monday,