Posts: 1,617
Joined: Jul 2009
Reputation:
11
I want to create a prompt that asks the user if they want to run the "Logo Downloader" addon and the "Tv Tunes" addon BUT only after they have updated the library and added new TV Shows.
Is there a way to do this?
To learn more, click
here.
Posts: 4,146
Joined: Jan 2008
Reputation:
40
You might be able to track and watch the scanners state in a service add-on.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 3,919
Joined: Jul 2010
Reputation:
154
BigNoid
Team-Kodi Member
Posts: 3,919
there is also the <onunload> tag, but that would just pop up the message after each scan.
Posts: 4,146
Joined: Jan 2008
Reputation:
40
There are multiple scenarios. You could add a service that spawns the desired script/addon or you (the author) transforms the script into a service addon. I am 100% unsure about the <onunload> skin thingy..
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 17,415
Joined: Aug 2007
Reputation:
590
Hitcher
Team-Kodi Member
Posts: 17,415
Just add <onunload>your_control</onunload> to the library scan xml.
Posts: 1,617
Joined: Jul 2009
Reputation:
11
Thanks for the tips guys, I'll look into doing it this way and post my results.
To learn more, click
here.
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
just note that adding it to DialogVideoScan.xml is not a 100% guarantee the script will run,
as users have the option to hide this dialog:
Settings > Videos > Hide progress of library updates.
Posts: 4,146
Joined: Jan 2008
Reputation:
40
We really should make python aware of the announce managment stuff.. So we have something like the players OnPlayback* stuff.
I can recall topfs told me something about it on IRC a few month ago. Will ping him again .)
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.