Add manage libraries

Too many entries
This commit is contained in:
angelblue05 2019-01-14 03:16:50 -06:00
parent b80c5f7f57
commit 9cc8405a70
2 changed files with 20 additions and 7 deletions

View file

@ -941,3 +941,7 @@ msgstr ""
msgctxt "#33193" msgctxt "#33193"
msgid "Restarting..." msgid "Restarting..."
msgstr "" msgstr ""
msgctxt "#33194"
msgid "Manage libraries"
msgstr ""

View file

@ -119,6 +119,8 @@ class Events(object):
event('UpdateServer') event('UpdateServer')
elif mode == 'thememedia': elif mode == 'thememedia':
get_themes() get_themes()
elif mode == 'managelibs':
manage_libraries()
elif mode == 'backup': elif mode == 'backup':
backup() backup()
elif mode == 'restartservice': elif mode == 'restartservice':
@ -184,15 +186,10 @@ def listing():
directory(server['Name'], "plugin://plugin.video.emby/?mode=browse&server=%s" % server['Id'], context=context) directory(server['Name'], "plugin://plugin.video.emby/?mode=browse&server=%s" % server['Id'], context=context)
directory(_(33194), "plugin://plugin.video.emby/?mode=managelibs", True)
directory(_(33134), "plugin://plugin.video.emby/?mode=addserver", False) directory(_(33134), "plugin://plugin.video.emby/?mode=addserver", False)
directory(_(5), "plugin://plugin.video.emby/?mode=settings", False)
directory(_(33054), "plugin://plugin.video.emby/?mode=adduser", False) directory(_(33054), "plugin://plugin.video.emby/?mode=adduser", False)
directory(_(33098), "plugin://plugin.video.emby/?mode=refreshboxsets", False) directory(_(5), "plugin://plugin.video.emby/?mode=settings", False)
directory(_(33154), "plugin://plugin.video.emby/?mode=addlibs", False)
directory(_(33139), "plugin://plugin.video.emby/?mode=updatelibs", False)
directory(_(33140), "plugin://plugin.video.emby/?mode=repairlibs", False)
directory(_(33184), "plugin://plugin.video.emby/?mode=removelibs", False)
directory(_(33060), "plugin://plugin.video.emby/?mode=thememedia", False)
directory(_(33058), "plugin://plugin.video.emby/?mode=reset", False) directory(_(33058), "plugin://plugin.video.emby/?mode=reset", False)
directory(_(33192), "plugin://plugin.video.emby/?mode=restartservice", False) directory(_(33192), "plugin://plugin.video.emby/?mode=restartservice", False)
@ -226,6 +223,18 @@ def dir_listitem(label, path, artwork=None, fanart=None):
return li return li
def manage_libraries():
directory(_(33098), "plugin://plugin.video.emby/?mode=refreshboxsets", False)
directory(_(33154), "plugin://plugin.video.emby/?mode=addlibs", False)
directory(_(33139), "plugin://plugin.video.emby/?mode=updatelibs", False)
directory(_(33140), "plugin://plugin.video.emby/?mode=repairlibs", False)
directory(_(33184), "plugin://plugin.video.emby/?mode=removelibs", False)
directory(_(33060), "plugin://plugin.video.emby/?mode=thememedia", False)
xbmcplugin.setContent(int(sys.argv[1]), 'files')
xbmcplugin.endOfDirectory(int(sys.argv[1]))
def browse(media, view_id=None, folder=None, server_id=None): def browse(media, view_id=None, folder=None, server_id=None):
''' Browse content dynamically. ''' Browse content dynamically.