-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Report xbmc.abortRequested deprecation #70
Comments
@razzeee Can you please provide an example for any addon using old format and the one using new format. |
Old one would be script.trakt |
This branch should be using only the new one https://github.com/Razzeee/script.trakt/tree/code-cleanup |
Any ideas on how to implement this properly? Can this be used with kodistubs somehow by setting Either way, there are a few more deprecations that can benefit of a common design approach |
@razzeee @enen92 I was looking into this and I think we can do it in simple way. |
But only service addons need to have this. Not sure if others could theoretically also use this, might make sense and be totally valid for other addons. |
Not only service addons use such blocking calls, I've seen a few scripts that also do the same. In fact it is a common practice to suggest the inclusion of abortRequested() in all while statements that can run for some time so that Kodi can quit gracefully when requested to exit. IIRC Kodi will wait for 5 seconds for a Kodi addon to exit before killing the script |
@razzeee @enen92 ok if it is suggested that all add-ons must use this then there will not be any problem in doing it the way I suggested. And even if we want them for particular type like service add-on then also we can do this method, the only thing we'll have to add is a check for the name of the addon which we can easily get from addon.xml so I'll start work on this if you don't have any other problem with this method. |
Well but it doesn't mean that each addon has to have |
But doc says:
So doesn't that means every addon above gotham will have |
If you need to wait for stuff yes. But addons like context addons or plugins don't need to do that usually. There might be exceptions but it's not every addon. |
The old format should only be used in gotham or earlier. Instead we should encourage using the new one. See our docs here:
https://kodi.wiki/view/Service_add-ons
The text was updated successfully, but these errors were encountered: