Use getIdentifier in suggestions

This commit is contained in:
Ruud committed 2014-03-20 16:54:54 +01:00
1 parent 21c9d7fcc3
commit 00419910b4
1 file changed
+2 -2
@@ -1,7 +1,7 @@
from couchpotato import get_db from couchpotato import get_db
from couchpotato.api import addApiView from couchpotato.api import addApiView
from couchpotato.core.event import fireEvent from couchpotato.core.event import fireEvent
from couchpotato.core.helpers.variable import splitString, removeDuplicate from couchpotato.core.helpers.variable import splitString, removeDuplicate, getIdentifier
from couchpotato.core.plugins.base import Plugin from couchpotato.core.plugins.base import Plugin
from couchpotato.environment import Env from couchpotato.environment import Env
@@ -87,7 +87,7 @@ class Suggestion(Plugin):
if len(new_suggestions) - 1 < limit: if len(new_suggestions) - 1 < limit:
db = get_db() db = get_db()
active_movies = db.run('media', 'with_status', ['active', 'done']) active_movies = db.run('media', 'with_status', ['active', 'done'])
movies = [x['identifier'] for x in active_movies] movies = [getIdentifier(x) for x in active_movies]
movies.extend(seen) movies.extend(seen)
ignored.extend([x.get('imdb') for x in cached_suggestion]) ignored.extend([x.get('imdb') for x in cached_suggestion])