mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Add setting to sync during playback
This commit is contained in:
parent
077445f3fa
commit
ca0513e96a
3 changed files with 19 additions and 7 deletions
|
@ -905,3 +905,11 @@ msgstr ""
|
|||
msgctxt "#33184"
|
||||
msgid "Remove libraries"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#33185"
|
||||
msgid "Enable sync during playback (may cause some lag)"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#33186"
|
||||
msgid "The Kodi companion speeds up the start up sync. Other syncs are triggered by server events."
|
||||
msgstr ""
|
||||
|
|
|
@ -129,17 +129,19 @@ class Library(threading.Thread):
|
|||
if thread.is_done:
|
||||
threads.remove(thread)
|
||||
|
||||
self.worker_downloads()
|
||||
self.worker_sort()
|
||||
if (self.player.isPlayingVideo() and settings('syncDuringPlay.bool')) or xbmc.getCondVisibility('VideoPlayer.Content(livetv)'):
|
||||
|
||||
self.worker_updates()
|
||||
self.worker_userdata()
|
||||
self.worker_remove()
|
||||
self.worker_notify()
|
||||
self.worker_downloads()
|
||||
self.worker_sort()
|
||||
|
||||
self.worker_updates()
|
||||
self.worker_userdata()
|
||||
self.worker_remove()
|
||||
self.worker_notify()
|
||||
|
||||
if self.pending_refresh:
|
||||
|
||||
if self.total_updates > self.progress_display and (not self.player.isPlayingVideo() or xbmc.getCondVisibility('VideoPlayer.Content(livetv)')):
|
||||
if self.total_updates > self.progress_display:
|
||||
queue_size = self.worker_queue_size()
|
||||
|
||||
if self.progress_updates is None:
|
||||
|
|
|
@ -19,8 +19,10 @@
|
|||
</category>
|
||||
|
||||
<category label="30506"><!-- Sync Options -->
|
||||
<setting label="33186" type="lsep" />
|
||||
<setting label="33137" id="kodiCompanion" type="bool" default="true" />
|
||||
<setting label="30507" id="syncIndicator" type="number" default="99" visible="eq(-1,true)" subsetting="true"/>
|
||||
<setting label="33185" id="syncDuringPlay" type="bool" default="true" />
|
||||
<setting label="30536" id="dbSyncScreensaver" type="bool" default="true" />
|
||||
<setting label="33111" type="lsep" />
|
||||
<setting label="30511" id="useDirectPaths" type="enum" lvalues="33036|33037" default="1" />
|
||||
|
|
Loading…
Reference in a new issue