Ensure movies and tv shows are synced before music
This commit is contained in:
parent
6541b16810
commit
e129c94053
1 changed files with 4 additions and 7 deletions
|
@ -263,16 +263,13 @@ class LibrarySync(Thread):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def _full_sync(self):
|
def _full_sync(self):
|
||||||
process = {
|
process = [self.plex_movies, self.plex_tv_show]
|
||||||
'movies': self.plex_movies,
|
|
||||||
'tvshows': self.plex_tv_show,
|
|
||||||
}
|
|
||||||
if state.ENABLE_MUSIC:
|
if state.ENABLE_MUSIC:
|
||||||
process['music'] = self.plex_music
|
process.append(self.plex_music)
|
||||||
|
|
||||||
# Do the processing
|
# Do the processing
|
||||||
for itemtype in process:
|
for kind in process:
|
||||||
if self.suspend_item_sync() or not process[itemtype]():
|
if self.suspend_item_sync() or not kind():
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# Let kodi update the views in any case, since we're doing a full sync
|
# Let kodi update the views in any case, since we're doing a full sync
|
||||||
|
|
Loading…
Reference in a new issue