Skip to content

Commit

Permalink
Fixed notification for 'Буду смотреть'
Browse files Browse the repository at this point in the history
  • Loading branch information
quarckster committed Nov 8, 2018
1 parent 258ed60 commit 8e47874
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/lib/addonworker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('Сериал добавлен в список "Буду смотреть"')
Expand Down
2 changes: 1 addition & 1 deletion resources/lib/listitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

Expand Down

0 comments on commit 8e47874

Please sign in to comment.