Skip to content

Commit 60d3f54

Browse files
author
danielerl
committed
findMediaObject: Change title fallback to elif clause
This way the media object will not fall back to only matching by title if title and year did not match to anything
1 parent 116abbb commit 60d3f54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/lib/utilities.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def findMediaObject(mediaObjectToMatch, listToSearch, matchByTitleAndYear):
110110
result = __findInList(
111111
listToSearch, title=mediaObjectToMatch['title'], year=mediaObjectToMatch['year'])
112112
# match only by title, as some items don't have a year on trakt
113-
if result is None and 'title' in mediaObjectToMatch:
113+
elif result is None and 'title' in mediaObjectToMatch:
114114
result = __findInList(
115115
listToSearch, title=mediaObjectToMatch['title'])
116116

0 commit comments

Comments
 (0)