• 1
  • 134
  • 135
  • 136(current)
  • 137
  • 138
  • 140
Release script.skinshortcuts
I recognized a small mistake in the german translation. Despite the hint  '#. ::MENUNAME:: is used internally and should NOT be translated Smile' in the language file, this is translated at one point (#32080).

Is there a project on Transflex? How can I join it?
Reply
I recognized a small mistake in the german translation. Despite the hint  '#. ::MENUNAME:: is used internally and should NOT be translated' in the language file, this is translated at one point (#32080).

Is there a project on Transflex? How can I join it?
Reply
Does anyone know why I'm getting this errors in log file after opening a Dialog window?
Please take a look: https://paste.kodi.tv/ehugakiviv.kodi

Code:

2021-07-20 14:39:35.511 T:6854 INFO <general>: Loading skin file: SkinSettings.xml, load type: LOAD_EVERY_TIME
2021-07-20 14:39:39.221 T:7020 INFO <general>: initializing python engine.
2021-07-20 14:39:39.343 T:6854 INFO <general>: Loading skin file: /home/piotr/.kodi/addons/skin.cosmic/xml/script-skinshortcuts.xml, load type: LOAD_ON_GUI_INIT
2021-07-20 14:39:39.367 T:6854 INFO <general>: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
2021-07-20 14:39:39.392 T:7022 ERROR <general>: Traceback (most recent call last):

2021-07-20 14:39:39.392 T:7022 ERROR <general>:
2021-07-20 14:39:39.392 T:7022 ERROR <general>: File "/home/piotr/.kodi/addons/script.skinshortcuts/resources/lib/library.py", line 971, in playlists
for line in xmldata.getiterator():

2021-07-20 14:39:39.392 T:7022 ERROR <general>:
2021-07-20 14:39:39.392 T:7022 ERROR <general>: AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getiterator'

2021-07-20 14:39:39.392 T:7022 ERROR <general>:
2021-07-20 14:39:39.395 T:7022 ERROR <general>: Traceback (most recent call last):

2021-07-20 14:39:39.395 T:7022 ERROR <general>:
2021-07-20 14:39:39.395 T:7022 ERROR <general>: File "/home/piotr/.kodi/addons/script.skinshortcuts/resources/lib/library.py", line 971, in playlists
for line in xmldata.getiterator():

2021-07-20 14:39:39.395 T:7022 ERROR <general>:
2021-07-20 14:39:39.395 T:7022 ERROR <general>: AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getiterator'

2021-07-20 14:39:39.395 T:7022 ERROR <general>:
2021-07-20 14:39:39.395 T:7022 ERROR <general>: Traceback (most recent call last):

2021-07-20 14:39:39.395 T:7022 ERROR <general>:
2021-07-20 14:39:39.395 T:7022 ERROR <general>: File "/home/piotr/.kodi/addons/script.skinshortcuts/resources/lib/library.py", line 971, in playlists
for line in xmldata.getiterator():

2021-07-20 14:39:39.395 T:7022 ERROR <general>:
2021-07-20 14:39:39.395 T:7022 ERROR <general>: AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getiterator'

2021-07-20 14:39:39.395 T:7022 ERROR <general>:
2021-07-20 14:39:39.396 T:7022 ERROR <general>: Traceback (most recent call last):

2021-07-20 14:39:39.396 T:7022 ERROR <general>:
2021-07-20 14:39:39.396 T:7022 ERROR <general>: File "/home/piotr/.kodi/addons/script.skinshortcuts/resources/lib/library.py", line 971, in playlists
for line in xmldata.getiterator():

2021-07-20 14:39:39.396 T:7022 ERROR <general>:
2021-07-20 14:39:39.396 T:7022 ERROR <general>: AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getiterator'

2021-07-20 14:39:39.396 T:7022 ERROR <general>:
2021-07-20 14:39:39.396 T:7022 ERROR <general>: Traceback (most recent call last):

2021-07-20 14:39:39.396 T:7022 ERROR <general>:
2021-07-20 14:39:39.396 T:7022 ERROR <general>: File "/home/piotr/.kodi/addons/script.skinshortcuts/resources/lib/library.py", line 971, in playlists
for line in xmldata.getiterator():

2021-07-20 14:39:39.396 T:7022 ERROR <general>:
2021-07-20 14:39:39.396 T:7022 ERROR <general>: AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getiterator'

2021-07-20 14:39:39.396 T:7022 ERROR <general>:
2021-07-20 14:39:39.397 T:7022 ERROR <general>: Traceback (most recent call last):

2021-07-20 14:39:39.397 T:7022 ERROR <general>:
2021-07-20 14:39:39.397 T:7022 ERROR <general>: File "/home/piotr/.kodi/addons/script.skinshortcuts/resources/lib/library.py", line 971, in playlists
for line in xmldata.getiterator():

2021-07-20 14:39:39.397 T:7022 ERROR <general>:
2021-07-20 14:39:39.397 T:7022 ERROR <general>: AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getiterator'

2021-07-20 14:39:39.397 T:7022 ERROR <general>:
2021-07-20 14:39:39.397 T:7022 ERROR <general>: Traceback (most recent call last):

2021-07-20 14:39:39.397 T:7022 ERROR <general>:
2021-07-20 14:39:39.397 T:7022 ERROR <general>: File "/home/piotr/.kodi/addons/script.skinshortcuts/resources/lib/library.py", line 971, in playlists
for line in xmldata.getiterator():

2021-07-20 14:39:39.397 T:7022 ERROR <general>:
2021-07-20 14:39:39.397 T:7022 ERROR <general>: AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getiterator'

2021-07-20 14:39:39.397 T:7022 ERROR <general>:
2021-07-20 14:39:39.397 T:7022 ERROR <general>: Traceback (most recent call last):

2021-07-20 14:39:39.398 T:7022 ERROR <general>:
2021-07-20 14:39:39.398 T:7022 ERROR <general>: File "/home/piotr/.kodi/addons/script.skinshortcuts/resources/lib/library.py", line 971, in playlists
for line in xmldata.getiterator():

2021-07-20 14:39:39.398 T:7022 ERROR <general>:
2021-07-20 14:39:39.398 T:7022 ERROR <general>: AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getiterator'

2021-07-20 14:39:39.398 T:7022 ERROR <general>:
2021-07-20 14:39:39.398 T:7022 ERROR <general>: Traceback (most recent call last):

2021-07-20 14:39:39.398 T:7022 ERROR <general>:
2021-07-20 14:39:39.398 T:7022 ERROR <general>: File "/home/piotr/.kodi/addons/script.skinshortcuts/resources/lib/library.py", line 971, in playlists
for line in xmldata.getiterator():

2021-07-20 14:39:39.398 T:7022 ERROR <general>:
2021-07-20 14:39:39.398 T:7022 ERROR <general>: AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getiterator'

2021-07-20 14:39:39.398 T:7022 ERROR <general>:
2021-07-20 14:39:39.398 T:7022 ERROR <general>: Traceback (most recent call last):

2021-07-20 14:39:39.398 T:7022 ERROR <general>:
2021-07-20 14:39:39.398 T:7022 ERROR <general>: File "/home/piotr/.kodi/addons/script.skinshortcuts/resources/lib/library.py", line 971, in playlists
for line in xmldata.getiterator():

2021-07-20 14:39:39.398 T:7022 ERROR <general>:
2021-07-20 14:39:39.398 T:7022 ERROR <general>: AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getiterator'

2021-07-20 14:39:39.398 T:7022 ERROR <general>:
2021-07-20 14:39:39.399 T:7022 ERROR <general>: Traceback (most recent call last):

2021-07-20 14:39:39.399 T:7022 ERROR <general>:
2021-07-20 14:39:39.399 T:7022 ERROR <general>: File "/home/piotr/.kodi/addons/script.skinshortcuts/resources/lib/library.py", line 971, in playlists
for line in xmldata.getiterator():

2021-07-20 14:39:39.399 T:7022 ERROR <general>:
2021-07-20 14:39:39.399 T:7022 ERROR <general>: AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getiterator'

2021-07-20 14:39:39.399 T:7022 ERROR <general>:
2021-07-20 14:39:39.399 T:7022 ERROR <general>: Traceback (most recent call last):

2021-07-20 14:39:39.399 T:7022 ERROR <general>:
2021-07-20 14:39:39.399 T:7022 ERROR <general>: File "/home/piotr/.kodi/addons/script.skinshortcuts/resources/lib/library.py", line 971, in playlists
for line in xmldata.getiterator():

2021-07-20 14:39:39.399 T:7022 ERROR <general>:
2021-07-20 14:39:39.399 T:7022 ERROR <general>: AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getiterator'

2021-07-20 14:39:39.399 T:7022 ERROR <general>:
2021-07-20 14:39:39.399 T:7022 ERROR <general>: Traceback (most recent call last):

2021-07-20 14:39:39.399 T:7022 ERROR <general>:
2021-07-20 14:39:39.399 T:7022 ERROR <general>: File "/home/piotr/.kodi/addons/script.skinshortcuts/resources/lib/library.py", line 971, in playlists
for line in xmldata.getiterator():

2021-07-20 14:39:39.399 T:7022 ERROR <general>:
2021-07-20 14:39:39.399 T:7022 ERROR <general>: AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getiterator'

2021-07-20 14:39:39.399 T:7022 ERROR <general>:
2021-07-20 14:39:39.399 T:7022 ERROR <general>: Traceback (most recent call last):

2021-07-20 14:39:39.399 T:7022 ERROR <general>:
2021-07-20 14:39:39.399 T:7022 ERROR <general>: File "/home/piotr/.kodi/addons/script.skinshortcuts/resources/lib/library.py", line 971, in playlists
for line in xmldata.getiterator():

2021-07-20 14:39:39.399 T:7022 ERROR <general>:
2021-07-20 14:39:39.399 T:7022 ERROR <general>: AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getiterator'

2021-07-20 14:39:39.399 T:7022 ERROR <general>:
2021-07-20 14:39:39.681 T:6854 WARNING <general>: CGUIWindowManager - HandleAction - ignoring action 0, because topmost modal dialog closing animation is running
Reply
(2021-03-27, 10:23)Chillbo Wrote: @mikeSiLVO, do you know whether it's normal behaviour that the skinshortcuts script doesn't re-build the home menu anymore under v19 Matrix when the skin's template.xml file has been changed like it did under v18 Leia? Atm, I have to open the customization dialog, change an item and only then will it re-build.

I'm using this re-build code line:

xml:
<onload condition="System.HasAddon(script.skinshortcuts)">RunScript(script.skinshortcuts,type=buildxml&mainmenuID=9000&group=mainmenu&levels=1&options=noGroups)</onload>

Any help with this, @mikeSiLVO? I've also opened an issue on GitHub, but nothing so far... It's really a big issue as no changes within the template.xml file trigger a rebuild anymore. Maybe @sualfred can also advise/help? Blush
OSMC Skinner      |    The OSMC Skin for Kodi v20 Nexus (native 16:9, 21:9 and 4:3 skin, special cinemascope/CIH version available)      |     GitHub: https://github.com/Ch1llb0/skin.osmc
Reply
Does anybody know how to generate menus and submenus with the <onclick> set to ReplaceWindow instead of ActivateWindow.

Thanks
Reply
(2021-08-21, 19:02)roidy Wrote: Does anybody know how to generate menus and submenus with the <onclick> set to ReplaceWindow instead of ActivateWindow.

Thanks

Unsure if i am right.but i think you have to set up the ***.DATA.xml files and set up with the action tag.

e.g.

mainmenu.DATA.xml

xml:
<shortcut>
<label>10002</label>
<label2>32034</label2>
<icon>DefaultPicture.png</icon>
<thumb />
<action>ReplaceWindow(Pictures)</action>
</shortcut>

https://github.com/mikesilvo164/script.s...ortcuts.md
Skins |  Titan M O D   •   S W A N (WIP)
Reply
(2021-08-21, 20:58)mardukL Wrote:
(2021-08-21, 19:02)roidy Wrote: Does anybody know how to generate menus and submenus with the <onclick> set to ReplaceWindow instead of ActivateWindow.

Thanks

Unsure if i am right.but i think you have to set up the ***.DATA.xml files and set up with the action tag.

e.g.

mainmenu.DATA.xml

xml:
<shortcut>
<label>10002</label>
<label2>32034</label2>
<icon>DefaultPicture.png</icon>
<thumb />
<action>ReplaceWindow(Pictures)</action>
</shortcut>

https://github.com/mikesilvo164/script.s...ortcuts.md

Thanks, that works fine for the initial menu generation but once users start adding extra menu items they are added using ActivateWindow.

I need a way so when the user adds a new menu item using button 401 it adds with an action of ReplaceWindow, not ActivateWindow.
Reply
Hi everyone, just want to give a small update on Skin Shortcuts. 
Over the last week, I've been working this project since @Chillbo asked about taking a look at an issue.
I've made a lot of code related changes, none of them breaking. So, no adjustments will be required for any skins. Big Grin

If you have the time and inclination, please test for any regressions or outstanding issues. I'll be releasing alphas and betas during the process which can be found below.

Releases can be found: https://github.com/mikesilvo164/script.s.../releases/
Commit Changelog: https://github.com/mikesilvo164/script.s...164:master

Changelog at the time of this post:
 
Code:
- restructured (no change to API)
- added copyright and spdx license headers
- housekeeping
    - cleaned up whitespace
    - unused variables
    - unused imports
    - renamed shadowed builtins
    - applied PEP8
    - linted with pylint, isort
    - updated/removed po file comments and metadata
- moved shared/common constants to their own module
- refactored json rpc requests and moved to a common module
- refactored logging and moved to a common module
- refactored hash generation and moved to a common module
- refactored file handling and moved to a common module
- removed any unnecessary string encoding/decoding
- removed duplicate code
- assorted minor fixes
- updated settings.xml to Kodi's new settings format
- added to Weblate for translations
- added ::ENABLE:: to enable an add-on, used like ::INSTALL::

For those interested in translation, I've also added this project to the Kodi Weblate. To get started, visit: https://forum.kodi.tv/showthread.php?tid=363132

I will try to keep an eye on the forum (even if I'm not posting), but the best way to report any issues/regressions is @ https://github.com/mikesilvo164/script.s...uts/issues

Thank you in advance. Big Grin
Debug Log (wiki) | Troubleshooting (wiki)Add-ons
Reply
(2021-08-22, 23:27)anxdpanic Wrote: If you have the time and inclination, please test for any regressions or outstanding issues. I'll be releasing alphas and betas during the process which can be found below.

@anxdpanic , I started testing 2.0 alpha 6 today (Windows 10, Amber skin), and there seems to be some sort of "infinite loop" issue.  The addon continually builds the menu, over and over.  

Here is a link to a debug log, including debugging turned on for the addon: https://1drv.ms/u/s!AlII29kkG6TFk8NFEate...g?e=k5AxXa

Going back to version 1.1.15 fixes the issue.

Please let me know what additional information you might need to track this down.  Thanks.

Regards,

Bart
Amber Maintainer
Main HTPC: Intel Core i7, 32GB, nVidia GTX1080, Windows 11 Soundbar: Samsung HW-Q950A TV: LG CX Kodi: 19.3 Skin: Amber
Reply
@bsoriano 

Thanks for testing, that was a major oversight on my behalf on a quick untested addition.
Simplest of mistakes even Big Grin an `is not None` was supposed to be `is None`

Pushed the fix: https://github.com/mikesilvo164/script.s...0.0.alpha7

Cheers
Debug Log (wiki) | Troubleshooting (wiki)Add-ons
Reply
(2021-08-27, 23:50)anxdpanic Wrote: @bsoriano 

Thanks for testing, that was a major oversight on my behalf on a quick untested addition.
Simplest of mistakes even Big Grin an `is not None` was supposed to be `is None`

Pushed the fix: https://github.com/mikesilvo164/script.s...0.0.alpha7

Cheers
@anxdpanic , thank you for the quick response! I was not able to test the new version yesterday, I will do it today and let you know.

Regards,

Bart

EDIT: @anxdpanic , I was able to test and this version works well, thank you! It also corrects the previous issue of menu not rebuilding when you make a change in the template.xml.
Amber Maintainer
Main HTPC: Intel Core i7, 32GB, nVidia GTX1080, Windows 11 Soundbar: Samsung HW-Q950A TV: LG CX Kodi: 19.3 Skin: Amber
Reply
Could any skinshortcuts experts help me with a problem.

I'm building widgets using submenus much like Arctic Horizon using the following template pattern:-

code:
<template>
    <submenu include="widgets" name="widgetgroup">
        <controls>
            <control type="group">
                <control type="grouplist" id="8999">
                    <top>**topVal**</top>  <!-- PAY ATTENTION TO THIS VALUE -->
                    <height>2160</height>
                    <left>0</left>
                    <width>3840</width>

                    <skinshortcuts insert="widgets">items</skinshortcuts>

                </control>
            </control>
        </controls>

        <items insert="widgets">
            <property name="topVal" tag="property" attribute="name|widgetStyle" value="Landscape">860</property>
            <property name="topVal" tag="property" attribute="name|widgetStyle" value="LandscapeSmall">960</property>
            <property name="topVal" tag="property" attribute="name|widgetStyle" value="Poster">669</property>
            <property name="topVal" tag="property" attribute="name|widgetStyle" value="PosterSmall">765</property>
            <property name="topVal" tag="property" attribute="name|widgetStyle" value="Square">886</property>
    
            <controls>
              <!-- WIDGET CODE, IRRELIVANT FOR THIS ISSUE -->
            </controls>

        </items>

    </submenu>
</template>


Inside each item(widgets) I can set a property called "topVal"  to a value depending on the "widgetStyle" which is fine.

My problem is in the main submenu grouplist I need the "topVal" for the first item generated. I just can't find a way to access that property from the submenu.

Thanks
Rob
Reply
@anxdpanic , I think I may have found a new issue.

In my overrides.xml, I have the following:

xml:

<propertyfallback property="widgetContent.2" attribute="widget.2" value="static">static</propertyfallback>
<propertyfallback property="widgetContent.2">default</propertyfallback>

Which I use to tell skinshortcuts which template to build, one for dynamic content, or one for static content.  After version 2.0.0, this override does not seem to be working.  The property WidgetContent.2 is always assigned the value "default", even if the property "widget.2" has the value "static".

Unfortunately, this breaks my template.xml functionality and results in widgets with incorrect artwork/size/info.  If I revert back to version 1.1.5, the override works correctly.

Could you please take a look at this issue? Do you need me to provide a debug log or other additional info? Please let me know.  Thanks.

Regards,

Bart
Amber Maintainer
Main HTPC: Intel Core i7, 32GB, nVidia GTX1080, Windows 11 Soundbar: Samsung HW-Q950A TV: LG CX Kodi: 19.3 Skin: Amber
Reply
Hello everybody,

I was using Pellucid but as the developer stops the support of skin shortcut, I’m looking for a new skin that would support it.

I need menu shortcut to addons (to 2 different users in the Netflix Addon for example) and to python scripts.

Thanks !!
Reply
I can recommend the OSMC Skin... See my profile signature Wink
OSMC Skinner      |    The OSMC Skin for Kodi v20 Nexus (native 16:9, 21:9 and 4:3 skin, special cinemascope/CIH version available)      |     GitHub: https://github.com/Ch1llb0/skin.osmc
Reply
  • 1
  • 134
  • 135
  • 136(current)
  • 137
  • 138
  • 140

Logout Mark Read Team Forum Stats Members Help
script.skinshortcuts8