Skip to content

Commit dc6b579

Browse files
committed
Include production year in search results
1 parent da19f4c commit dc6b579

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Contents/Code/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def search(self, results, media, lang, manual):
445445
i = 1
446446
for r in info:
447447
self.Log(' [%s] %s. %s (%s) %s {%s} [%s]', r['score'], i, r['title'], r['year'], r['artist'], r['id'], r['thumb'])
448-
results.Append(MetadataSearchResult(id = r['id'], name = r['title'], score = r['score'], thumb = r['thumb'], lang = lang))
448+
results.Append(MetadataSearchResult(id = r['id'], name = r['title'], score = r['score'], thumb = r['thumb'], lang = lang, year = r['date'].year))
449449

450450
# If there are more than one result, and this one has a score that is >= GOOD SCORE, then ignore the rest of the results
451451
if not manual and len(info) > 1 and r['score'] >= GOOD_SCORE:

0 commit comments

Comments
 (0)