Fix IndexError when trying to match movie title

This commit is contained in:
tomkat83 2016-04-11 14:51:35 +02:00
parent 8be55d898c
commit cccd545b4c

View file

@ -852,11 +852,11 @@ class Kodidb_Functions():
ids = []
for row in rows:
ids.append(row[0])
if len(ids) > 1:
if len(ids) == 1:
return ids[0]
else:
# No unique match possible
return False
else:
return ids[0]
def getUnplayedItems(self):
"""