Kodi Community Forum
Release skin helper service - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+---- Forum: Skin helper addons (https://forum.kodi.tv/forumdisplay.php?fid=300)
+---- Thread: Release skin helper service (/showthread.php?tid=235676)

skin helper service - User 224999 - 2015-08-17

Hi all,

As discussed on the forums before I decided to transform the helper service that I once created for my Titan skin into a standalone helper service from which all skinners can benefit.

What is does is exactly as the name states: It helps you with some stuff in your skin that isn't available in the normal Kodi infolabels etc.

I hope you like it. It's going to save you lot's of time with skinning ;-)

Please read the readme on Github:

If you want to have an example of how to implement all stuff in your skin, you can look at the Titan skin. I have adjusted it to work completely with this new helper service. All cool features should be implemented.


PS: If you like my work and you feel that you would like to help out a little bit then you can buy me a beer :-)

RE: skin helper service - tomer953 - 2015-08-17

You just took me all the free time....
Great man! Ill test it in the next days

RE: skin helper service - Hitcher - 2015-08-17

Just finished reading the readme Big Grin

Amazing work.

EDIT: Anyway this could extended to separate hours and minutes?

Window(Home).Property(Duration)    The duration of the current listitem in hours, for example 1:20

So the skinner can display them how he wants?

1 hour 23 minutes

RE: skin helper service - ronie - 2015-08-17

a friendly request: you should really prefix all the window properties you set with the name of the addon.
stuff like Window(Home).Property(cdArt) is way too generic and will clash with any addon that happens to provide the same property.

something like Window(Home).Property(SkinHelper.cdArt) would be much better :-)

RE: skin helper service - User 224999 - 2015-08-17

@hitcher: Great idea. Will add that tomorrow.

@ronie, I'll prefix the properties, thanks.

RE: skin helper service - Hitcher - 2015-08-17

Excellent, thanks.

RE: skin helper service - Gade - 2015-08-17

Extremely cool. Lots of useful stuff.

Thanks a lot for sharing this.

RE: skin helper service - jurialmunkey - 2015-08-18

Fantastic! Big Grin

RE: skin helper service - tomer953 - 2015-08-18

I tested a few things already,
some works fine, and some of them I didn't success to work with,
for example the smartshortcut option.
I Added to my overrieds.xml:
        <shortcut label="Smart Shortcuts" type="32010">||BROWSE||script.skin.helper.service/?action=smartshortcuts</shortcut>
<widget label="Smart Shortcuts" type="32010">||BROWSE||script.skin.helper.service/?action=smartshortcuts</widget>
Now I choose "Choose shortcut" or "choose widget" and I see "Smart shortcut" - but they both empty.
also in the choose shortcut button, the smart shortcut is the only item now (all the rest dissapeared)
what i'm doing wrong ?
(after I click enter in both images- they show an empty list)

this one:
<widget label="Widgets" type="32010">||BROWSE||script.skin.helper.service/?action=widgets&amp;path=skinplaylists,librarydataprovider,scriptwidgets,extendedinfo,smartshortcuts,pvr,smartishwidgets</widget>
Is working fine.

Sorry If I miss something obvious, I am checking it very quickly for now...

Other Stuff:
currently I use script.skin.info.service by Phil for some thing I will glad to see in your script instead.
1. http://i.imgur.com/HdwMLaN.jpg - cdart for moviesets [Set.Movie.%d.Art(discart)]
2. AudioLanguage of movie, which return: ENG \ ITA \ RUS or something simillar according to the audio tracks
3. Artist.Albums.Count - to count the numbers of albums for artist
and more things from that addon will be great, I want to use few scripts as possible.

4. As I requested before, to create "smart background browser" that I can use from skinshortcuts, for exmaple, being able to add menu "youtube" add assign to it the Fanart from the addon as a background.
5. as I write this, I get scripts error from the script, and also from extendedinfo which says invalid ID and more stuff, ill post debug log later: http://pastebin.com/7NAWsT71
maybe unicode errors, or the fact i'm using mysql server... ill check it out later.

many thanks

RE: skin helper service - ZombieRobot - 2015-08-18

Wow this is fantastic just got through the readme now time to give it a test drive great stuff

RE: skin helper service - User 224999 - 2015-08-18

@tomer953: Don't copy the exact example. You should add the shortcut and widget entries to the corresponding sections in your overrides.xml You should already have a groupings section in there. BTW: Did you install the Git version of skinshortcuts ?

I will fix some issues tonight, including the new window properties as requested by Ronie.

RE: skin helper service - tomer953 - 2015-08-18

I did use the git version.
I don't have groups in my overrides (actually I don't know how to use them, need to read and try) - this is my overrides.xml file: http://pastebin.com/jCiDr2iU
and the skin is working without any groups: http://i.imgur.com/1uw6S4J.jpg
I already built the widgets as you can see (in the image above, it is in the left side, slide from there to the middle), All Im missing is to fill content to widget from favourites, can you guide me how to achive that? (I used to use "JustSelect" option to choose the path for the favourite,save it on string, and then assign it to "custom1" widget "custom2" and etc...)

about the script errors, here full debug log, just starts kodi and wait a few seoncds, then they start to appear.. (you script and extendedinfo script):
[edit: solved in the next post]

RE: skin helper service - tomer953 - 2015-08-18

Ok small fixes I found:
script.skin.helper.service-master\resources\lib\PluginContent.py", line 413

and in line 727 replace:
path = fav["path"]
path = fav["path"]
if isinstance(path, unicode):
    path = path.encode("utf-8")

Also I removed cache from extendedinfo and update to latest git, and now I don't get "login failed" every 10 minutes (~) like before...
right now it seems that I don't have any popups error (after the fix above of course)

Also you should take a look here: http://pastebin.com/xBJvmGFe
and fix those too...

thanks again, hope its fine to send you all this fixes\issues.

RE: skin helper service - im85288 - 2015-08-18

Have to say Marcel is a python genius, I have had the pleasure of using some of the features from the old titan helper script and now will be using this one to enhance the experience. @marcelveldt - please do not forget my studiolabel request or I can submit a pull request if you prefer. Cheers

RE: skin helper service - Mr. V - 2015-08-18

Wow. This looks fantastic. Smile

I will have to look at using this.

This forum uses Lukasz Tkacz MyBB addons.