• 1
  • 136
  • 137
  • 138
  • 139
  • 140(current)
Release script.skinshortcuts
@Hitcher your method works i just deleted the whole script.skinshortcuts data folder after editing the library.py file and added an addon as a favorite it showed up in the submenu section and after that I re-added the userdata folder for (script.skinshortcuts) back and 💥 all my favorites were backs and i also installed script.skinshortcuts 2.1.0 after as well. Presently using now,.. you could probably skip a step and directly install script.skinshortcuts 2.1.0 and just clear your favourites entry as @Hitcher suggested thanks to him by the way. I'm guessing the later version of script.skinshortcuts already has "favouritesbrowser" instead of the old "favourites" entry. Didn't check tho
Reply
(2023-12-07, 18:11)manfeed Wrote: Thanks, but none of the suggested methods works for me. In the Kodi log this is the error message that I get, in case it helps:

code:

2023-12-07 17:03:37.370 T:6140    error <general>: xml.parsers.expat.ExpatError: not well-formed (invalid token): line 4, column 0

What's on line 4 in your favourites file?
Arctic Fuse 2 - Alpha now available. Support me on Ko-fi.
Reply
(2023-12-08, 01:01)jurialmunkey Wrote: What's on line 4 in your favourites file?

That's the problem! I'm seeing that now, in Omega, whenever I add a new favourite a NUL character gets added at the end of the file...

Image

If I manually edit favourites.xml and erase that last line all works well, but as soon as I add a new favourite the NUL character returns...
If I have helped you or increased your knowledge, please click the 'thumbs up' button to give thanks :)
Reply
(2023-12-08, 01:42)manfeed Wrote:
(2023-12-08, 01:01)jurialmunkey Wrote: What's on line 4 in your favourites file?
That's the problem! I'm seeing that now, in Omega, whenever I add a new favourite a NUL character gets added at the end of the file...

That sounds like a Kodi bug. Probably should be reported on xbmc github as NUL is not a valid character in XML schema:
https://en.wikipedia.org/wiki/Valid_characters_in_XML Wrote:Note that the code point U+0000, assigned to the null control character, is the only character encoded in Unicode and ISO/IEC 10646 that is always invalid in any XML 1.0 and 1.1 document.

As far as I understand, C++ string literals use NUL character terminations - so I'm guessing one has crept in somewhere with the code changes to use favouritesbrowser.

If that is fixed in core, I'm doubtful that any code changes are needed for skinshortcuts at all -- updating the shortcut to use favouritesbrowser can be done with the override I mentioned before (and that's a better approach than touching library.py because override will automatically update existing shortcut setups with the new path).
Arctic Fuse 2 - Alpha now available. Support me on Ko-fi.
Reply
@manfeed - Apologies, I didn't realise that it had already been fixed recently. That'd be why I wasn't seeing the issue - I'm on Omega nightlies.

So for the sake of everyone in this thread -- the solution is:

  1. Upgrade to latest Omega nightlies where the NUL termination issue is fixed.
  2. Add a new favourite to force the favourites.xml file to rewrite without the NUL termination.
  3. Restart Kodi and then open skinshortcuts.

There is no reason to be editing python files in skinshortcuts, especially if you don't understand the code you are editing.

If you want to override ActivateWindow(favourites) shortcuts that can be done in the overrides.xml file

xml:

<override action="ActivateWindow(favourites)">
<action>ActivateWindow(favouritesbrowser)</action>
</override>
Arctic Fuse 2 - Alpha now available. Support me on Ko-fi.
Reply
(2023-12-09, 01:11)jurialmunkey Wrote:
(2023-12-09, 01:11)jurialmunkey Wrote:  

If you want to override ActivateWindow(favourites) shortcuts that can be done in the overrides.xml file

Since "script.skinshortcuts" hadn't received an update for a long time, I replaced "ActivateWindow(favourites)" in the "library.py" with "ActivateWindow(favouritesbrowser)" right at the beginning of my Omega test installation.
Because of this change I had no problems with the favorites on Titan Mod.

But thank you for your tip with the “override.xml”.
I restored "library.py" to its original state and it works.
This makes it easier for all users whether with an update in "script.skinshortcuts" from "ActivateWindow(favourites)" to "ActivateWindow(favouritesbrowser)" or without an update.

Image
Reply
Not important at all but FYI the latest version of skin shortcuts is available here https://github.com/MikeSiLVO/script.skinshortcuts

I originally worked on it to port it to Python 3 but I was blindly trying my best to get it to work and anxdpanic was kind enough to basically rewrite the whole thing and release it for v2.0+

Not sure about the future of Skin Shortcuts but perhaps skin.variables is a possible replacement... Angel

Blush
Reply
AFAIK, he's still working on the script, but he's not active on the forum. If there are issues that you'd like him to know about, use git issues Blush
OSMC Skinner      |    The OSMC Skin for Kodi v21 Omega (native 16:9, 21:9 and 4:3 skin, special cinemascope/CIH version available)      |     Kodi repo: https://osmcsk.in/      |     GitHub: https://github.com/Ch1llb0/skin.osmc
Reply
Can you submit it to the official repo please?
Reply
It is already in the Kodi repo

I was just mentioning where the current version could be found. BigNoids repository is from like 4 years ago or so.
Reply
Didn't realise, thanks.
Reply
I am adding this add-on to the Confluence ZEITGEIST skin, so far everything is going well, but the problem is with the confluence shortcuts, when I add the main add-on I don't get an icon, but rather the folder. But if it is from within the add-on, the icon appears
Reply
I've been using script.skinshortcuts for my skin for years, but I have to admit that I don't understand anything about it... 
So can someone please, please finally explain to me how to properly create a default menu?

1) The DATA-files in the 'shortcuts' subdirectory dictate the menu structure, right? Or is the structure defined by another, additional point?

2) In my specific case, the entry for Live TV shows the same image twice, both in the background and in the menu tile (see screenshot below). Why? 'icon' and 'thumb' refer to different images; all path information exist, so I expected two different images (and which is actually what I wanted).. The entry for this is as follows:
Code:

    <shortcut>
        <defaultID>livetv</defaultID>
        <label>32022</label>
        <label2>$ADDON[script.skinshortcuts 32022]</label2>
        <icon>resource://resource.images.skinicons.wide/tvrecordings.png</icon>
        <thumb>special://home/addons/resource.images.skinbackgrounds.titanium/resources/appearance.jpg</thumb>
        <action>ActivateWindow(TVGuide)</action>
    </shortcut>

3) <thumb> is the small picture in the menu button, <icon> is the large picture in the background ("fanart"). Is that right?

4) What do the path information, resource:// and special:// , mean? When do I use which?

5) How does the localization of the menu entries work? Here, for example, "Movies" is correctly translated into the selected national language ("Filme", the red curtain), but "Music" remains untranslated. Why?
Code:

    <shortcut>
        <defaultID>movies</defaultID>
        <label>342</label>
        <label2>$ADDON[script.skinshortcuts 32015]</label2>
        <icon>resource://resource.images.skinicons.wide/movies.png</icon>
        <thumb>special://home/addons/resource.images.skinbackgrounds.titanium/resources/curtains.jpg</thumb>
        <action>ActivateWindow(Videos,videodb://movies/titles/,return)</action>
    </shortcut>
    <shortcut>
        <defaultID>music</defaultID>
        <label>10005</label>
        <label2>$ADDON[script.skinshortcuts 32019]</label2>
        <icon>resource://resource.images.skinicons.wide/music.png</icon>
        <thumb>special://home/addons/resource.images.skinbackgrounds.titanium/resources/music.jpg</thumb>
        <action>ActivateWindow(Music,musicdb://,return)</action>
    </shortcut>

6) In addition, the entry for 'Weather' is completely ignored; the main menu does not contain it at all. What could be the reason for this?

7) My mainmenu.DATA.xml: https://pastebin.com/0YibxRZP



Image
Reply
Hello Everyone
I am currently using the following line with script.favourites for the home window.
It all works well, but the difficulty is that I have to create favourites first.

If possible, someone can guide me how to use skin shortcuts on the same way,if is possible.
The whole purpose is that I can change the content source when I want to see something else.

</focusedlayout>  
<content>$INFO[Skin.String(CustomFavourite.1.List)]</content>
<content>
<item id="1">
<label>Add +</label>
<icon>icon/pencil.png</icon>
<onclick>RunScript(script.favourites,property=CustomFavourite.1)</onclick>
</item>
</content> 
</control>

Image
Reply
Are playlists broken in skin shortcuts? I can't add a playlist as a menu item or a widget the playlist selector is always empty.
Have tried in multiple skins that use skin.shortcuts and in everyone the selector fails to list any playlists.
skin shortcuts doesn't seem to be maintained anymore so maybe I'm just out of luck.


Fixed... Seems like my script.skinshortcuts got updated to 2.1.0 from the Titan Bingie mod repo.... Reinstalled the official 2.0.3 version from the Kodi repo and it now works.
Reply
  • 1
  • 136
  • 137
  • 138
  • 139
  • 140(current)

Logout Mark Read Team Forum Stats Members Help
script.skinshortcuts8
This forum uses Lukasz Tkacz MyBB addons.