mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-07-28 01:07:31 +00:00
fixed tv show deletions
This commit is contained in:
parent
78bc187c1f
commit
9287706ced
2 changed files with 26 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue