Force remove duplicate in suggested movies
This commit is contained in:
@@ -79,8 +79,10 @@ class Suggestion(Plugin):
|
|||||||
seen = [] if not seen else seen
|
seen = [] if not seen else seen
|
||||||
|
|
||||||
if ignore_imdb:
|
if ignore_imdb:
|
||||||
|
suggested_imdbs = []
|
||||||
for cs in cached_suggestion:
|
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)
|
new_suggestions.append(cs)
|
||||||
|
|
||||||
# Get new results and add them
|
# Get new results and add them
|
||||||
|
|||||||
Reference in New Issue
Block a user