mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +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
|
||||
|
||||
for item in movieData:
|
||||
xbmc.sleep(sleepVal)
|
||||
if not item.get('IsFolder'):
|
||||
kodiItem = self.getKodiMovie(item["Id"])
|
||||
userData=API().getUserData(item)
|
||||
|
@ -303,6 +304,7 @@ class LibrarySync():
|
|||
return False
|
||||
|
||||
for item in tvshowData:
|
||||
xbmc.sleep(sleepVal)
|
||||
episodeData = self.getEpisodes(item["Id"], False)
|
||||
|
||||
if (episodeData != None):
|
||||
|
@ -312,6 +314,7 @@ class LibrarySync():
|
|||
count = 1
|
||||
|
||||
for episode in episodeData:
|
||||
xbmc.sleep(sleepVal)
|
||||
kodiItem = self.getKodiEpisodeByMbItem(episode)
|
||||
userData=API().getUserData(episode)
|
||||
timeInfo = API().getTimeInfo(episode)
|
||||
|
|
Loading…
Reference in a new issue