Greatly speed up deleting of items on the Kodi side
This commit is contained in:
parent
3088078ff8
commit
1bf98cb27e
1 changed files with 6 additions and 6 deletions
|
@ -530,15 +530,15 @@ class LibrarySync(Thread):
|
|||
message=utils.lang(30052),
|
||||
icon='{plex}',
|
||||
sound=False)
|
||||
for item in delete_movies:
|
||||
with itemtypes.Movies() as movie_db:
|
||||
for item in delete_movies:
|
||||
movie_db.remove(item['plex_id'])
|
||||
for item in delete_tv:
|
||||
with itemtypes.TVShows() as tv_db:
|
||||
for item in delete_tv:
|
||||
tv_db.remove(item['plex_id'])
|
||||
# And for the music DB:
|
||||
for item in delete_music:
|
||||
with itemtypes.Music() as music_db:
|
||||
for item in delete_music:
|
||||
music_db.remove(item['plex_id'])
|
||||
|
||||
def get_updatelist(self, xml, item_class, method, view_name, view_id,
|
||||
|
|
Loading…
Reference in a new issue