Fix missed __getitem__ references

This commit is contained in:
TrueTechy 2019-09-23 20:59:27 +01:00
parent 5f65006658
commit 77411c8559
2 changed files with 3 additions and 3 deletions

View file

@ -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:

View file

@ -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'])