From 768cdffb424097aa4ab7ef6a31b3b0978939a0b6 Mon Sep 17 00:00:00 2001 From: Jamie Date: Fri, 22 Aug 2014 23:20:36 +0100 Subject: [PATCH] Update trakt.py --- sickbeard/notifiers/trakt.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/sickbeard/notifiers/trakt.py b/sickbeard/notifiers/trakt.py index cc0e99fb..5cc73951 100644 --- a/sickbeard/notifiers/trakt.py +++ b/sickbeard/notifiers/trakt.py @@ -68,10 +68,15 @@ class TraktNotifier: # URL parameters, should not need to recheck data (done above) data = { - 'tvdb_id': ep_obj.show.indexerid, - 'title': ep_obj.show.name, - 'year': ep_obj.show.startyear + 'shows': [ + { + 'tvdb_id': ep_obj.show.indexerid, + 'title': ep_obj.show.name, + 'year': ep_obj.show.startyear + } + ] } + TraktCall("show/unwatchlist/%API%", self._api(), self._username(), self._password(), data) # Remove all episodes from episode watchlist @@ -82,7 +87,7 @@ class TraktNotifier: for show in watchlist: # Check if tvdb_id exists if 'tvdb_id' in show: - if unicode(data['tvdb_id']) == show['tvdb_id']: + if unicode(data['shows'][0]['tvdb_id']) == show['tvdb_id']: data_show = { 'title': show['title'], 'tvdb_id': show['tvdb_id'],