mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-03 06:46:12 +00:00
Reimplement native mode to function client side
This commit is contained in:
parent
519fa9d9db
commit
3e3a79c6bb
5 changed files with 102 additions and 1 deletions
|
@ -27,7 +27,7 @@ from ..helper import (
|
|||
JSONRPC,
|
||||
LazyLogger,
|
||||
)
|
||||
from ..helper.utils import JsonDebugPrinter, translate_path, kodi_version
|
||||
from ..helper.utils import JsonDebugPrinter, translate_path, kodi_version, path_replacements
|
||||
from ..jellyfin import Jellyfin
|
||||
|
||||
#################################################################################################
|
||||
|
@ -167,6 +167,8 @@ class Events(object):
|
|||
get_themes(api_client)
|
||||
elif mode == "managelibs":
|
||||
manage_libraries()
|
||||
elif mode == "managepaths":
|
||||
path_replacements()
|
||||
elif mode == "backup":
|
||||
backup()
|
||||
elif mode == "restartservice":
|
||||
|
@ -278,6 +280,7 @@ def listing():
|
|||
)
|
||||
|
||||
directory(translate(33194), "plugin://plugin.video.jellyfin/?mode=managelibs", True)
|
||||
directory(translate(33203), "plugin://plugin.video.jellyfin/?mode=managepaths", True)
|
||||
directory(translate(33134), "plugin://plugin.video.jellyfin/?mode=addserver", False)
|
||||
directory(translate(33054), "plugin://plugin.video.jellyfin/?mode=adduser", False)
|
||||
directory(translate(5), "plugin://plugin.video.jellyfin/?mode=settings", False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue