From 77411c8559946bde174de52f52eca5040b99aa25 Mon Sep 17 00:00:00 2001 From: TrueTechy Date: Mon, 23 Sep 2019 20:59:27 +0100 Subject: [PATCH] Fix missed __getitem__ references --- resources/lib/full_sync.py | 2 +- resources/lib/library.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/lib/full_sync.py b/resources/lib/full_sync.py index 6ba1c86b..37310dc0 100644 --- a/resources/lib/full_sync.py +++ b/resources/lib/full_sync.py @@ -535,7 +535,7 @@ class FullSync(object): dialog.update(int((float(count) / float(len(items))*100)), heading="%s: %s" % (_('addon_name'), library[0])) count += 1 else: - obj = MEDIA[items[0][1]](self.server, jellyfindb, kodidb, direct_path)['Remove'] + obj = MEDIA[items[0][1]](self.server, jellyfindb, kodidb, direct_path).remove for item in items: diff --git a/resources/lib/library.py b/resources/lib/library.py index 6726ade3..c7a8aa5a 100644 --- a/resources/lib/library.py +++ b/resources/lib/library.py @@ -657,7 +657,7 @@ class UserDataWorker(threading.Thread): except Queue.Empty: break - obj = MEDIA[item['Type']](self.args[0], jellyfindb, kodidb, self.args[1])['UserData'] + obj = MEDIA[item['Type']](self.args[0], jellyfindb, kodidb, self.args[1]).userdata try: obj(item) @@ -742,7 +742,7 @@ class RemovedWorker(threading.Thread): except Queue.Empty: break - obj = MEDIA[item['Type']](self.args[0], jellyfindb, kodidb, self.args[1])['Remove'] + obj = MEDIA[item['Type']](self.args[0], jellyfindb, kodidb, self.args[1]).remove try: obj(item['Id'])