Skip to content

Commit

Permalink
findMediaObject: Change title fallback to elif clause
Browse files Browse the repository at this point in the history
This way the media object will not fall back to only matching by title if title and year did not match to anything
  • Loading branch information
danielerl committed Jan 10, 2024
1 parent 116abbb commit 60d3f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/lib/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def findMediaObject(mediaObjectToMatch, listToSearch, matchByTitleAndYear):
result = __findInList(
listToSearch, title=mediaObjectToMatch['title'], year=mediaObjectToMatch['year'])
# match only by title, as some items don't have a year on trakt
if result is None and 'title' in mediaObjectToMatch:
elif result is None and 'title' in mediaObjectToMatch:
result = __findInList(
listToSearch, title=mediaObjectToMatch['title'])

Expand Down

0 comments on commit 60d3f54

Please sign in to comment.