Fix IndexError when trying to match movie title
This commit is contained in:
parent
8be55d898c
commit
cccd545b4c
1 changed files with 3 additions and 3 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue