Skip to content

Commit

Permalink
change notification method
Browse files Browse the repository at this point in the history
  • Loading branch information
rmrector committed Feb 21, 2021
1 parent 6d2d547 commit f9fc04f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/service.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import xbmc
import xbmcgui
import xbmcaddon

from libs import quickjson
Expand Down Expand Up @@ -161,7 +162,8 @@ def notify(self):
return

if self.use_simplenotification:
xbmc.executebuiltin('Notification("{0}", "{1}", {2}, special://home/addons/service.stinger.notification/resources/media/logo.png)'.format(stingertype, message, self.notification_visibletime * 1000))
icon = "special://home/addons/service.stinger.notification/resources/media/logo.png"
xbmcgui.Dialog().notification(stingertype, message, icon, self.notification_visibletime * 1000)
else:
window = NotificationWindow('script-stinger-notification-Notification.xml', addon.getAddonInfo('path'), 'Default', '1080i')
window.message = message
Expand Down

0 comments on commit f9fc04f

Please sign in to comment.