Force remove duplicate in suggested movies

This commit is contained in:
Ruud
2014-01-21 22:38:36 +01:00
parent 405b63acdd
commit fc6839b441

View File

@@ -79,8 +79,10 @@ class Suggestion(Plugin):
seen = [] if not seen else seen
if ignore_imdb:
suggested_imdbs = []
for cs in cached_suggestion:
if cs.get('imdb') != ignore_imdb:
if cs.get('imdb') != ignore_imdb and cs.get('imdb') not in suggested_imdbs:
suggested_imdbs.append(cs.get('imdb'))
new_suggestions.append(cs)
# Get new results and add them