mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
added option to perform sync when screensaver is deactivated
This commit is contained in:
parent
5696f76a5f
commit
a07f545d5a
3 changed files with 9 additions and 0 deletions
|
@ -298,6 +298,7 @@
|
||||||
<string id="30533">Duration of the music library pop up (in seconds)</string>
|
<string id="30533">Duration of the music library pop up (in seconds)</string>
|
||||||
<string id="30534">Server messages</string>
|
<string id="30534">Server messages</string>
|
||||||
<string id="30535">Generate a new device Id</string>
|
<string id="30535">Generate a new device Id</string>
|
||||||
|
<string id="30536">Sync when screensaver is deactivated</string>
|
||||||
|
|
||||||
<!-- service add-on -->
|
<!-- service add-on -->
|
||||||
<string id="33000">Welcome</string>
|
<string id="33000">Welcome</string>
|
||||||
|
|
|
@ -205,5 +205,12 @@ class KodiMonitor(xbmc.Monitor):
|
||||||
xbmc.sleep(10000)
|
xbmc.sleep(10000)
|
||||||
utils.window('emby_onWake', value="true")
|
utils.window('emby_onWake', value="true")
|
||||||
|
|
||||||
|
|
||||||
|
elif method == "GUI.OnScreensaverDeactivated":
|
||||||
|
if utils.settings('dbSyncScreensaver') == "true":
|
||||||
|
xbmc.sleep(1000);
|
||||||
|
utils.window('emby_onWake', value="true")
|
||||||
|
|
||||||
|
|
||||||
elif method == "Playlist.OnClear":
|
elif method == "Playlist.OnClear":
|
||||||
pass
|
pass
|
|
@ -32,6 +32,7 @@
|
||||||
<setting id="enableTextureCache" label="30512" type="bool" default="true" />
|
<setting id="enableTextureCache" label="30512" type="bool" default="true" />
|
||||||
<setting id="imageCacheLimit" type="enum" label="30513" values="Disabled|5|10|15|20|25" default="0" visible="eq(-1,true)" subsetting="true" />
|
<setting id="imageCacheLimit" type="enum" label="30513" values="Disabled|5|10|15|20|25" default="0" visible="eq(-1,true)" subsetting="true" />
|
||||||
<setting id="syncEmptyShows" type="bool" label="30508" default="false" />
|
<setting id="syncEmptyShows" type="bool" label="30508" default="false" />
|
||||||
|
<setting id="dbSyncScreensaver" label="30536" type="bool" default="false" />
|
||||||
<setting id="useDirectPaths" type="enum" label="30511" values="Addon(Default)|Native(Direct paths)" default="0" />
|
<setting id="useDirectPaths" type="enum" label="30511" values="Addon(Default)|Native(Direct paths)" default="0" />
|
||||||
<setting id="enableMusic" type="bool" label="30509" default="true" />
|
<setting id="enableMusic" type="bool" label="30509" default="true" />
|
||||||
<setting id="streamMusic" type="bool" label="30510" default="false" visible="eq(-1,true)" subsetting="true" />
|
<setting id="streamMusic" type="bool" label="30510" default="false" visible="eq(-1,true)" subsetting="true" />
|
||||||
|
|
Loading…
Reference in a new issue