From 03d016797c2fd6fb60b4e09df5f47f2329f501c4 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Fri, 12 Feb 2016 17:23:07 -0600 Subject: [PATCH] Allow popup time setting 0 to disable notification For the newly added content notification --- resources/lib/itemtypes.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/resources/lib/itemtypes.py b/resources/lib/itemtypes.py index ae121021..aacac99b 100644 --- a/resources/lib/itemtypes.py +++ b/resources/lib/itemtypes.py @@ -211,12 +211,15 @@ class Items(object): return (True, update_videolibrary) def contentPop(self, name, time=5000): - xbmcgui.Dialog().notification( - heading="Emby for Kodi", - message="Added: %s" % name, - icon="special://home/addons/plugin.video.emby/icon.png", - time=time, - sound=False) + + if time: + # It's possible for the time to be 0. It should be considered disabled in this case. + xbmcgui.Dialog().notification( + heading="Emby for Kodi", + message="Added: %s" % name, + icon="special://home/addons/plugin.video.emby/icon.png", + time=time, + sound=False) class Movies(Items):