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),
|
message=utils.lang(30052),
|
||||||
icon='{plex}',
|
icon='{plex}',
|
||||||
sound=False)
|
sound=False)
|
||||||
for item in delete_movies:
|
with itemtypes.Movies() as movie_db:
|
||||||
with itemtypes.Movies() as movie_db:
|
for item in delete_movies:
|
||||||
movie_db.remove(item['plex_id'])
|
movie_db.remove(item['plex_id'])
|
||||||
for item in delete_tv:
|
with itemtypes.TVShows() as tv_db:
|
||||||
with itemtypes.TVShows() as tv_db:
|
for item in delete_tv:
|
||||||
tv_db.remove(item['plex_id'])
|
tv_db.remove(item['plex_id'])
|
||||||
# And for the music DB:
|
# And for the music DB:
|
||||||
for item in delete_music:
|
with itemtypes.Music() as music_db:
|
||||||
with itemtypes.Music() as music_db:
|
for item in delete_music:
|
||||||
music_db.remove(item['plex_id'])
|
music_db.remove(item['plex_id'])
|
||||||
|
|
||||||
def get_updatelist(self, xml, item_class, method, view_name, view_id,
|
def get_updatelist(self, xml, item_class, method, view_name, view_id,
|
||||||
|
|
Loading…
Add table
Reference in a new issue