willforde / script.module.codequick

Kodi addon framework
GNU General Public License v2.0
33 stars 6 forks source link

A way to quit silently from @Resolver.register function #15

Closed sy6sy2 closed 6 years ago

sy6sy2 commented 6 years ago

From a @Route.register function we can return False in order to quit silently without raising a RuntimeError, but from a @Resolver.register function, even if we return False CodeQuick raise an exception.

Is there a way to exit from a @Resolver.register function explicitly without raising an error like in a @Route.register function with a return False?

Thank you!

cc @wwark

willforde commented 6 years ago

You can now silently quick from a resolver callback.

sy6sy2 commented 6 years ago

Thank you!

willforde commented 6 years ago

One thing to note is that from time to time Kodi will report that 'Playback failed'. There is nothing that can be done about that.