mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-07 00:36:13 +00:00
Added reset auth option to settings
This commit is contained in:
parent
3dcfb794c6
commit
1acfd78cdf
3 changed files with 21 additions and 7 deletions
10
default.py
10
default.py
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue