From 8e47874f9b0427f50a4f4a6f0c83d5689fa00643 Mon Sep 17 00:00:00 2001 From: Dmitry Misharov Date: Thu, 8 Nov 2018 19:53:31 +0100 Subject: [PATCH] =?UTF-8?q?Fixed=20notification=20for=20'=D0=91=D1=83?= =?UTF-8?q?=D0=B4=D1=83=20=D1=81=D0=BC=D0=BE=D1=82=D1=80=D0=B5=D1=82=D1=8C?= =?UTF-8?q?'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/lib/addonworker.py | 2 +- resources/lib/listitem.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/addonworker.py b/resources/lib/addonworker.py index 702dc30..e607598 100644 --- a/resources/lib/addonworker.py +++ b/resources/lib/addonworker.py @@ -504,7 +504,7 @@ def toggle_watched(**data): @route("/toggle_watchlist") def toggle_watchlist(**kwargs): - added = bool(kwargs.pop("added")) + added = int(kwargs.pop("added")) KinoPubClient("watching/togglewatchlist").get(data=kwargs) if added: notice('Сериал добавлен в список "Буду смотреть"') diff --git a/resources/lib/listitem.py b/resources/lib/listitem.py index 25f24b7..8d45f16 100644 --- a/resources/lib/listitem.py +++ b/resources/lib/listitem.py @@ -34,7 +34,7 @@ def _addWatchlistContextMenuItem(self, menu_items): link = get_internal_link( "toggle_watchlist", id=self.getProperty("id"), - added=not int(in_watchlist) + added=int(not int(in_watchlist)) ) menu_items.append((label, "Container.Update({})".format(link)))