Kodi Community Forum

Full Version: skin helper service
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2015-12-12, 01:19)im85288 Wrote: [ -> ]Hi Marcel,



With regards the broken cast widget, I can see that you were trying to add the episode/tvshow or movie dbid to the cast item but the logic is wrong. Would you like me to submit a PR to fix it or are you planning to resolve it and put a new build up on the Emby beta repo? Cheers

I will take a look tomorrow. My internet was broken last days
(2015-12-12, 22:12)im85288 Wrote: [ -> ]
(2015-12-12, 21:13)Fail$tyle420 Wrote: [ -> ]For the library window properties, can we also get budget info? Angel

Yeah check out the RottenTomatoesBoxOffice property.

I was under the impression that was interpreted as box office gross (how much money it made in theaters). I'm looking for budget as in how much they were allotted to make the movie. I know that extendedinfo calls the info from tmdb.
(2015-12-10, 18:34)Wanilton Wrote: [ -> ]@marcelveldt, translation script for portuguese (brazil), thanks

Thanks, added to Git. Will be included in next repo push later this week.
(2015-12-10, 15:10)badaas Wrote: [ -> ]1.0.22 in beta repo breaks cast, this version ok https://github.com/marcelveldt/script.sk...3f5aa8f468

Cast should now be fixed on Git. Can you please confirm ?
(2015-12-13, 00:20)Fail$tyle420 Wrote: [ -> ]I was under the impression that was interpreted as box office gross (how much money it made in theaters). I'm looking for budget as in how much they were allotted to make the movie. I know that extendedinfo calls the info from tmdb.

Latest Git has this info included, see updated readme.
Note that you will have to flush your cachefiles in the addon_data for the info to show up.
(2015-12-15, 10:52)marcelveldt Wrote: [ -> ]
(2015-12-10, 15:10)badaas Wrote: [ -> ]1.0.22 in beta repo breaks cast, this version ok https://github.com/marcelveldt/script.sk...3f5aa8f468

Cast should now be fixed on Git. Can you please confirm ?
fixed, thanks bud Smile
(2015-12-15, 11:46)marcelveldt Wrote: [ -> ]
(2015-12-13, 00:20)Fail$tyle420 Wrote: [ -> ]I was under the impression that was interpreted as box office gross (how much money it made in theaters). I'm looking for budget as in how much they were allotted to make the movie. I know that extendedinfo calls the info from tmdb.

Latest Git has this info included, see updated readme.
Note that you will have to flush your cachefiles in the addon_data for the info to show up.

AWESOME AWESOME AWESOME! Thank you sooo damn much for this!

*EDIT* Yeah, thank you soooo much for all the extra infos! Awesome job!
With Set skin settings like this

Code:
<setting id="HomeLayout" value="1" label="$LOCALIZE[31636]" condition="" icon="special://skin/extras/viewthumbs/50.jpg" description=""/>

My translation is :
Code:
msgctxt "#31636"
msgid "Beveled Tiles"
msgstr "Tuiles biseautées"

$INFO[Skin.String(HomeLayout.label)] return nothing when accented characters are present and skin helper returns error :

Code:
04:08:14 T:140735219834880   DEBUG: Alloc resources: 4.85ms  (4.40 ms skin load)
04:08:14 T:140735219834880   DEBUG: CGUIMediaWindow::GetDirectory ()
04:08:14 T:140735219834880   DEBUG:   ParentPath = []
04:08:14 T:140735219834880   ERROR: Control 3 in window 13000 has been asked to focus, but it can't
04:08:14 T:123145315336192   ERROR: EXCEPTION: Non-Existent Control 7
04:08:15 T:123145312116736   DEBUG: Version Check: Version installed {u'major': 16, u'tag': u'beta', u'tagversion': u'5', u'minor': 0, u'revision': u'2015-12-13-19fc4fa'}
04:08:15 T:123145312116736    INFO: CPythonInvoker(1, /Users/Cyril/Library/Application Support/Kodi/addons/service.xbmc.versioncheck/service.py): script successfully run
04:08:15 T:123145312116736    INFO: Python script stopped
04:08:15 T:123145312116736   DEBUG: Thread LanguageInvoker 123145312116736 terminating
04:08:15 T:140735219834880   DEBUG: Keyboard: scancode: 0x24, sym: 0x000d, unicode: 0x000d, modifier: 0x0
04:08:15 T:140735219834880   DEBUG: OnKey: return (0xf00d) pressed, action is Select
04:08:15 T:123145315336192   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 14: ordinal not in range(128)
                                            Traceback (most recent call last):
                                              File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/default.py", line 229, in <module>
                                                Main()
                                              File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/default.py", line 58, in __init__
                                                setSkinSetting(setting,windowHeader)
                                              File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/resources/lib/MainModule.py", line 338, in setSkinSetting
                                                xbmc.executebuiltin("Skin.SetString(%s.label,%s)" %(setting.encode("utf-8"),label.encode("utf-8")))
                                            UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 14: ordinal not in range(128)
                                            -->End of Python script error report<--
(2015-12-18, 05:10)Guilouz Wrote: [ -> ]$INFO[Skin.String(HomeLayout.label)] return nothing when accented characters are present and skin helper returns error :

This should now be fixed on Git. Can you confirm ?
(2015-12-18, 12:03)marcelveldt Wrote: [ -> ]
(2015-12-18, 05:10)Guilouz Wrote: [ -> ]$INFO[Skin.String(HomeLayout.label)] return nothing when accented characters are present and skin helper returns error :

This should now be fixed on Git. Can you confirm ?

It's working. Thanks !
(2015-11-16, 20:57)marcelveldt Wrote: [ -> ]
(2015-11-16, 20:03)tomer953 Wrote: [ -> ]Marcel, 10x about the colorpicker fix - confirmed working.
Just one thing, Can you give the current color that is set for the active instance? for example, If I want to change my tile background from "red" to "yellow", I want when I launch the picker, the "red" color will be with "V" icon on it.
so I need to know what is the current color (if set). so I can use it in my <itemlayout\focusedlayout> tags.

10x!

That color is available as a window property... look in the xml file

Hey Marcel,
I've been away for few weeks, but i'm back skinning now :]
about that post, I can't get the current color.
Window.Property(colorstring) - is giving you the color you are now picking, but I want the color that in the "memory" - before you replace it with the new one.
for example, if my skin main color is "blue", and you launch the colorpicker and you move your mouse cursor to "red", the Window.Property(colorstring) will return "red", but I need the "blue" value instead.
I need it to identify what color is being used right now, before the changes. can you add it to a new property please?

In addition, in my old picker, I had an advantage of "live preview" - for example, when you changes skin main color, you click on some color, and see in the background the whole skin changes,
in you script, I can't do that, because only after "save" is clicked, the color is being set...
maybe you can add an option to "save on click" so users will not need to launch the picker again and again until they find their color ?

and, one last bug - when I launch the dialog, Window.Property(colorstring) is empty even if I use 3110 as defaultcontrol. only after I move with the arrows - it get his value.

many thanks as usual.
Hi Marcel,

Two questions:

1. When using the "RecommendedMedia" helper function, I am having trouble figuring out the proper infolabel to use in order to display the item's *EPISODE* name. I can get the show title, episode number, season number, year, etc. But I cannot figure out what to use to make the episode name display.

For example, I have the following control:

Code:
<control type="label">
                    <left>10</left>
                    <top>290</top>
                    <width>380</width>
                    <height>auto</height>
                    <font>card25</font>
                    <textcolor>white</textcolor>
                    <align>Left</align>
                    <aligny>Top</aligny>
                    <wrapmultiline>true</wrapmultiline>
                    <label>S$INFO[Listitem.Season]E$INFO[Listitem.Episode] - $INFO[Listitem.TVShowTitle]</label>
                </control>

This one obviously would display S01E03 - Doctor Who. I would want it to display S01E03 - An Unearthly Child. Am I missing something simple?



2. Would it be possible to integrate this with the Plexbmc or Google Play Music addon, similar to what you are doing with NetfliXBMC addon? I am developing a skin that is going to add a lot of focus on these apps, and it would be nice to have their contents available as a source of data in the groupings Skin Helper adds.



Either way - Awesome service! This helping to add a lot of neat functionality to my skin. Wink
(2015-12-20, 19:05)digitalhigh Wrote: [ -> ]This one obviously would display S01E03 - Doctor Who. I would want it to display S01E03 - An Unearthly Child. Am I missing something simple?
Missing Container(###)

Works for me but have wrong number.
I set serial 1 episode 6....script showing me s1e13...I have 13 episods in that serial...something wrong here Sad
$INFO[Container(510).ListItem.TVShowTitle and $INFO[Container(510).ListItem.Title have same velue too...
Code:
<value condition="!IsEmpty(Container(510).ListItem.Title)">$INFO[Container(510).ListItem.Season,,/]$INFO[Container(510).ListItem.Episode,, - ]$INFO[Container(510).ListItem.TVShowTitle,(,) ]$INFO[Container(510).ListItem.Title]</value>
For recent media all working OK. Smile
Hi Marcel,

Is it possible to get season banners via the webservice?

(2015-12-20, 19:05)digitalhigh Wrote: [ -> ]2. Would it be possible to integrate this with the Plexbmc or Google Play Music addon, similar to what you are doing with NetfliXBMC addon? I am developing a skin that is going to add a lot of focus on these apps, and it would be nice to have their contents available as a source of data in the groupings Skin Helper adds.

Plexbmc integration is there similar to what is done in Netflixbmc, checkout the readme: https://github.com/marcelveldt/script.sk...er.service
(2015-12-21, 14:02)im85288 Wrote: [ -> ]Hi Marcel,

Is it possible to get season banners via the webservice?

(2015-12-20, 19:05)digitalhigh Wrote: [ -> ]2. Would it be possible to integrate this with the Plexbmc or Google Play Music addon, similar to what you are doing with NetfliXBMC addon? I am developing a skin that is going to add a lot of focus on these apps, and it would be nice to have their contents available as a source of data in the groupings Skin Helper adds.

Plexbmc integration is there similar to what is done in Netflixbmc, checkout the readme: https://github.com/marcelveldt/script.sk...er.service


Yes, I thought about that after posting - that I wasn't specific enough.


It looks like the "recommended media", "recommended movies" and "recommended tv" sections all pull from database and netflixbmc. It would be very neat if *these* sections curated media from PleXBMC as well.