From a92cc60b2f356e639ddccd4e2e9c754770d4909b Mon Sep 17 00:00:00 2001 From: Brage Date: Sat, 23 Mar 2024 00:48:27 +0100 Subject: [PATCH] Increased weight if name is equal --- apps/pyMetadata/sources/select.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/pyMetadata/sources/select.py b/apps/pyMetadata/sources/select.py index a24c479c..b08ec7fb 100644 --- a/apps/pyMetadata/sources/select.py +++ b/apps/pyMetadata/sources/select.py @@ -31,7 +31,10 @@ class UseSource(): if (anii is not None) and (anii.status == "COMPLETED" and anii.data is not None): result.append(WeightedData(anii, 4)) if (imdb is not None) and (imdb.status == "COMPLETED" and imdb.data is not None): - result.append(WeightedData(imdb, 1)) + imdb_weight = 1 + if (imdb.data.title == title): + imdb_weight = 6 + result.append(WeightedData(imdb, imdb_weight)) if (mal is not None) and (mal.status == "COMPLETED" and mal.data is not None): result.append(WeightedData(mal, 8)) return result