Posts: 46
Joined: Jan 2015
Reputation:
1
redraw
Junior Member
Posts: 46
2015-02-05, 19:34
(This post was last modified: 2015-02-05, 19:38 by redraw.)
thanks for clarifying! I see the difference.
Posts: 5,184
Joined: Jan 2009
Reputation:
131
Maybe a service addon which at least checks whether it should stop or not?
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not 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: 46
Joined: Jan 2015
Reputation:
1
redraw
Junior Member
Posts: 46
2015-02-05, 19:50
(This post was last modified: 2015-02-05, 20:06 by redraw.)
The Slideshow should never stop, visually.
So, considering extensions are set for the Slideshow Builtin in order to play videos, do you think my autoexec.py script is stable enough to run 24/7? I mean, I'm worried about that infinite loop and deadlocks or something. Plus, autoexec.py was intented to be a script that runs something at startup and finishes its process.
Posts: 5,184
Joined: Jan 2009
Reputation:
131
Yes with a service addon (which is constantly running in the background) you can do exactly the same as you are doing now but you get to check a boolean value which tells you when Kodi is shutting down so you can terminate your script gracefully.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not 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: 46
Joined: Jan 2015
Reputation:
1
redraw
Junior Member
Posts: 46
2015-02-05, 20:18
(This post was last modified: 2015-02-05, 20:49 by redraw.)
Ok, I'll see if I can read tutorials about how to write Service Addons. I wish someone else would be interested in it, as it seems to be a nice feature and I hardly understands my autoexec.py script.
Would you recommend me something to read?
Posts: 5,184
Joined: Jan 2009
Reputation:
131
Unfortuantely I don't have any clue about python myself, I only know what possibilities Kodi offers.
I'll try to look into the extension issue with the slideshow.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not 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: 5,184
Joined: Jan 2009
Reputation:
131
See PR6350.
autoexec.py is a different concept and has nothing to do with addons. If you write a service addon you need to install it in Kodi and then it will automatically be started after Kodi has been started.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not 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.