Browse Source

Trakt not moving movie to collection

fix #3018
pull/4201/head
Ruud 11 years ago
parent
commit
2deb6ee6a7
  1. 6
      couchpotato/core/notifications/trakt.py

6
couchpotato/core/notifications/trakt.py

@ -1,4 +1,4 @@
from couchpotato.core.helpers.variable import getTitle
from couchpotato.core.helpers.variable import getTitle, getIdentifier
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
@ -16,7 +16,7 @@ class Trakt(Notification):
'test': 'account/test/%s',
}
listen_to = ['movie.downloaded']
listen_to = ['movie.snatched']
def notify(self, message = '', data = None, listener = None):
if not data: data = {}
@ -38,7 +38,7 @@ class Trakt(Notification):
'username': self.conf('automation_username'),
'password': self.conf('automation_password'),
'movies': [{
'imdb_id': data['identifier'],
'imdb_id': getIdentifier(data),
'title': getTitle(data),
'year': data['info']['year']
}] if data else []

Loading…
Cancel
Save