TvTunes Hooks Changing

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
robwebset Offline
Banned
Posts: 982
Joined: Sep 2013
Information  TvTunes Hooks Changing
Post: #1
Hi,

As your skin is listed in the supported skins for TvTunes:
Add-on:TvTunes#Skins_With_Build_In_Support (wiki)

I thougth that I would post on this thread to let you know that the way the hooks from the Skin to TvTunes work is changing.

There are 2 main changes.

1) TvTunes will now (From 5.0.2 - which has recently been published) run as a service, this means that there is no longer a need to run the script every time the window loads, this means you can now safely remove the:

Code:
<onload condition="Skin.HasSetting(ActivateTvTunes) + System.HasAddon(script.tvtunes)">RunScript(script.tvtunes,backend=True)</onload>

From the top of your window XML files.

2) The way that skins should calculate if TvTunes is running has changed (Previously there were 2 different properties, TvTunesIsRunning and TvTunesIsAlive). Now there is a more generic PlayingBackgroundMedia that should cover a wider range of similar addons should the need arise. This can be checked as follows:

Code:
<visible>IsEmpty(Window(10025).Property(PlayingBackgroundMedia))</visible>

I have created a pull request for Confluence which should give you a very good idea of what has changed and help highlight how this may impact your skin:

https://github.com/xbmc/xbmc/pull/7315/files

Some more information can be found on the TvTunes wiki:

Add-on:TvTunes#Skin_Changes (wiki)

The old method will still be supported for the time being, but will be moved after a release has elapsed.

If you have any questions, then please post to the TvTunes thread.

Thanks

Rob
find quote