Added reset auth option to settings

This commit is contained in:
angelblue05 2015-05-04 19:03:46 -05:00
parent 3dcfb794c6
commit 1acfd78cdf
3 changed files with 21 additions and 7 deletions

View file

@ -44,8 +44,18 @@ if mode == "play" or mode == "playfromaddon":
item = PlaybackUtils().PLAY(result, setup="default")
elif mode == "reset":
# User reset local Kodi db
utils.reset()
elif mode == "resetauth":
# User tried login and failed too many times
resp = xbmcgui.Dialog().yesno("Warning", "Emby might lock your account if you fail to log in too many times. Proceed anyway?")
if resp == 1:
xbmc.log("Reset login attempts.")
WINDOW.setProperty("Server_status", "Auth")
else:
xbmc.executebuiltin('Addon.OpenSettings(plugin.video.emby)')
elif mode == "nextup":
#if the addon is called with nextup parameter, we return the nextepisodes list of the given tagname