From c4066137393ab5ec7180e2ca7530e1e5d9a2a56a Mon Sep 17 00:00:00 2001 From: bubblesaddon Date: Sun, 7 May 2017 16:36:29 +0200 Subject: [PATCH] Allow to unrate an item on Trakt --- resources/lib/service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/lib/service.py b/resources/lib/service.py index 7f8ee583..7b26de71 100644 --- a/resources/lib/service.py +++ b/resources/lib/service.py @@ -194,6 +194,8 @@ def doManualRating(self, data): rateMedia(media_type, [summaryInfo]) else: rateMedia(media_type, [summaryInfo], rating=data['rating']) + elif action == 'unrate': + rateMedia(media_type, [summaryInfo], unrate=True) else: logger.debug("doManualRating(): Summary info was empty, possible problem retrieving data from Trakt.tv")