mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Add shortcut restart addon
Add notification
This commit is contained in:
parent
25dbfd3a0e
commit
d43b261f0b
3 changed files with 15 additions and 0 deletions
|
@ -921,3 +921,15 @@ msgstr ""
|
||||||
msgctxt "#33188"
|
msgctxt "#33188"
|
||||||
msgid "Would you like to sync Rotten Tomatoes ratings?"
|
msgid "Would you like to sync Rotten Tomatoes ratings?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgctxt "#33191"
|
||||||
|
msgid "Restart Emby for Kodi to apply this change?"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgctxt "#33192"
|
||||||
|
msgid "Restart Emby for Kodi"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgctxt "#33193"
|
||||||
|
msgid "Restarting..."
|
||||||
|
msgstr ""
|
||||||
|
|
|
@ -194,6 +194,7 @@ def listing():
|
||||||
directory(_(33184), "plugin://plugin.video.emby/?mode=removelibs", False)
|
directory(_(33184), "plugin://plugin.video.emby/?mode=removelibs", False)
|
||||||
directory(_(33060), "plugin://plugin.video.emby/?mode=thememedia", 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)
|
||||||
|
|
||||||
if settings('backupPath'):
|
if settings('backupPath'):
|
||||||
directory(_(33092), "plugin://plugin.video.emby/?mode=backup", False)
|
directory(_(33092), "plugin://plugin.video.emby/?mode=backup", False)
|
||||||
|
|
|
@ -119,7 +119,9 @@ class Service(xbmc.Monitor):
|
||||||
self.settings['last_progress_report'] = datetime.today()
|
self.settings['last_progress_report'] = datetime.today()
|
||||||
|
|
||||||
if window('emby.restart.bool'):
|
if window('emby.restart.bool'):
|
||||||
|
|
||||||
window('emby.restart', clear=True)
|
window('emby.restart', clear=True)
|
||||||
|
dialog("notification", heading="{emby}", message=_(33193), icon="{emby}", time=1000, sound=False)
|
||||||
|
|
||||||
raise Exception('RestartService')
|
raise Exception('RestartService')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue