mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Allow popup time setting 0 to disable notification
For the newly added content notification
This commit is contained in:
parent
26836fb536
commit
03d016797c
1 changed files with 9 additions and 6 deletions
|
@ -211,12 +211,15 @@ class Items(object):
|
||||||
return (True, update_videolibrary)
|
return (True, update_videolibrary)
|
||||||
|
|
||||||
def contentPop(self, name, time=5000):
|
def contentPop(self, name, time=5000):
|
||||||
xbmcgui.Dialog().notification(
|
|
||||||
heading="Emby for Kodi",
|
if time:
|
||||||
message="Added: %s" % name,
|
# It's possible for the time to be 0. It should be considered disabled in this case.
|
||||||
icon="special://home/addons/plugin.video.emby/icon.png",
|
xbmcgui.Dialog().notification(
|
||||||
time=time,
|
heading="Emby for Kodi",
|
||||||
sound=False)
|
message="Added: %s" % name,
|
||||||
|
icon="special://home/addons/plugin.video.emby/icon.png",
|
||||||
|
time=time,
|
||||||
|
sound=False)
|
||||||
|
|
||||||
|
|
||||||
class Movies(Items):
|
class Movies(Items):
|
||||||
|
|
Loading…
Reference in a new issue