diff --git a/resources/lib/entrypoint.py b/resources/lib/entrypoint.py index 00f2d892..06d2c46d 100644 --- a/resources/lib/entrypoint.py +++ b/resources/lib/entrypoint.py @@ -25,8 +25,11 @@ import variables as v ############################################################################### log = logging.getLogger("PLEX."+__name__) -HANDLE = int(argv[1]) -ARGV_0 = argv[0] +try: + HANDLE = int(argv[1]) + ARGV_0 = argv[0] +except IndexError: + pass ############################################################################### diff --git a/service.py b/service.py index 9cc0f12a..2bb0a5cd 100644 --- a/service.py +++ b/service.py @@ -183,12 +183,12 @@ class Service(): if welcome_msg is True: # Reset authentication warnings welcome_msg = False - dialog.notification( - lang(29999), - "%s %s" % (lang(33000), - self.user.currUser), - time=2000, - sound=False) + dialog('notification', + lang(29999), + "%s %s" % (lang(33000), + self.user.currUser), + time=2000, + sound=False) # Start monitoring kodi events self.kodimonitor_running = KodiMonitor(self) # Start playqueue client