Merge pull request #81 from TrueTechy/fixes-for-10.4

Fix missed __getitem__ references
This commit is contained in:
mcarlton00 2019-09-25 19:04:36 -04:00 committed by GitHub
commit 1c328221b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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])) dialog.update(int((float(count) / float(len(items))*100)), heading="%s: %s" % (_('addon_name'), library[0]))
count += 1 count += 1
else: 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: for item in items:

View file

@ -657,7 +657,7 @@ class UserDataWorker(threading.Thread):
except Queue.Empty: except Queue.Empty:
break 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: try:
obj(item) obj(item)
@ -742,7 +742,7 @@ class RemovedWorker(threading.Thread):
except Queue.Empty: except Queue.Empty:
break 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: try:
obj(item['Id']) obj(item['Id'])