Solved Question : Kodi do auto clear a property ?
#1
Hi, i came here because i detected a 'strange' behaviour.

I set up a view type, with cutom panel containers (at season level).

One of them has  a static item which set a property onclick  (- which starts trailer in windowed mode)
My first attempt was to give the prop a simple name.

xml:
<item id="9">
                        <label>Local Trailer</label>
                        <label2 />
                        <visible>!String.IsEmpty(Window(home).Property(trailer_avail))</visible>
                        <onclick>SetProperty(TrailerPlaying,true,home)</onclick>
                        <onclick>PlayMedia($INFO[listitem.path]$INFO[ListItem.FolderName,,-trailer.mp4],1)</onclick>
                        <icon>$INFO[ListItem.Art(tvshow.landscape)]</icon>
                        <thumb>$INFO[ListItem.Art(tvshow.landscape)]</thumb>
                    </item>


I decided to set property because i want to hide some controls with a fade animation.
And i thought i have to clear it, but KODI does it for me ;-) ..

If i name the property

<onclick>SetProperty(TrailerPlaying,true,home)</onclick>

KODI auto Clears that prop, after i quit/stop playback. (press 'x' key

And/But if use
<onclick>SetProperty(TrailerIsPlaying,true,home)</onclick>

I need to Clear the Property via XML , which is my Expected behaviour.

Can someone tell me, why that happens ?
Or lead me to a source with 'KODI native (gui) propertys ' , so i have control over which naming conventions for custom propertys i should avoid ?!



Link to Video for retrace
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#2
the property you are using is likely already used either somewhere else in the skin, or by an addon you're using.

a list of native kodi properties can be found in the wiki:
https://kodi.wiki/view/InfoLabels#Window
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
(2019-11-27, 18:26)ronie Wrote: the property you are using is likely already used either somewhere else in the skin, or by an addon you're using.

a list of native kodi properties can be found in the wiki:
https://kodi.wiki/view/InfoLabels#Window

Thanks.
The log dont put relevant info for that.
i will check if its came from a background service of an addon.

I assume skinhelper.service (even if my skin dont use/call it)

Its 100% not skinned to clear that prop.
(I build skin xml from scratch)

Will test tomorrow, and report back.
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#4
Solved.

related to script.skin.helper.service, even if not used it uses bg service to clear the prop if set.
found this in 'kodi_monitor.py'

python:
if method == "Player.OnStop":
                self.monitoring_stream = False
                self.infopanelshown = False
                self.win.clearProperty("Skinhelper.PlayerPlaying")
                self.win.clearProperty("TrailerPlaying")
                self.reset_win_props()
Skins |  Titan M O D   •   S W A N (WIP)
Reply

Logout Mark Read Team Forum Stats Members Help
Question : Kodi do auto clear a property ?0