fixed tv show deletions

This commit is contained in:
Marcel van der Veldt 2015-03-21 11:32:21 +01:00
commit 9287706ced
2 changed files with 26 additions and 8 deletions

View file

@ -503,13 +503,14 @@ class LibrarySync():
cleanNeeded = False
# DELETES -- EPISODES
# process any deletes only at fullsync
allMB3EpisodeIds = set(allMB3EpisodeIds)
for episode in allKodiEpisodeIds:
if episode.get('mbid') not in allMB3EpisodeIds:
WriteKodiDB().deleteEpisodeFromKodiLibrary(episode.get('kodiid'))
# TODO --> process deletes for episodes !!!
# DELETES -- TV SHOWS
if fullsync:
allLocaldirs, filesTVShows = xbmcvfs.listdir(tvLibrary)
allMB3TVShows = set(allTVShows)