def reset_ad(): kodi.close_all() kodi.sleep(500) # sleep or reset won't work for some reason from urlresolver.plugins import alldebrid ad = alldebrid.AllDebridResolver() ad.reset_authorization() kodi.notify(msg=kodi.i18n('ad_auth_reset'), duration=5000)
def auth_ad(): kodi.close_all() kodi.sleep(500) # sleep or authorize won't work for some reason from urlresolver.plugins import alldebrid if alldebrid.AllDebridResolver().authorize_resolver(): kodi.notify(msg=kodi.i18n('ad_authorized'), duration=5000)