mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Throttle play status sync
This commit is contained in:
parent
f1e01fe0a9
commit
ed77944543
1 changed files with 3 additions and 0 deletions
|
@ -269,6 +269,7 @@ class LibrarySync():
|
||||||
count = 1
|
count = 1
|
||||||
|
|
||||||
for item in movieData:
|
for item in movieData:
|
||||||
|
xbmc.sleep(sleepVal)
|
||||||
if not item.get('IsFolder'):
|
if not item.get('IsFolder'):
|
||||||
kodiItem = self.getKodiMovie(item["Id"])
|
kodiItem = self.getKodiMovie(item["Id"])
|
||||||
userData=API().getUserData(item)
|
userData=API().getUserData(item)
|
||||||
|
@ -303,6 +304,7 @@ class LibrarySync():
|
||||||
return False
|
return False
|
||||||
|
|
||||||
for item in tvshowData:
|
for item in tvshowData:
|
||||||
|
xbmc.sleep(sleepVal)
|
||||||
episodeData = self.getEpisodes(item["Id"], False)
|
episodeData = self.getEpisodes(item["Id"], False)
|
||||||
|
|
||||||
if (episodeData != None):
|
if (episodeData != None):
|
||||||
|
@ -312,6 +314,7 @@ class LibrarySync():
|
||||||
count = 1
|
count = 1
|
||||||
|
|
||||||
for episode in episodeData:
|
for episode in episodeData:
|
||||||
|
xbmc.sleep(sleepVal)
|
||||||
kodiItem = self.getKodiEpisodeByMbItem(episode)
|
kodiItem = self.getKodiEpisodeByMbItem(episode)
|
||||||
userData=API().getUserData(episode)
|
userData=API().getUserData(episode)
|
||||||
timeInfo = API().getTimeInfo(episode)
|
timeInfo = API().getTimeInfo(episode)
|
||||||
|
|
Loading…
Reference in a new issue