Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
12 changes: 6 additions & 6 deletions service.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

from CallListenerClients.FritzboxClient import FritzboxClient
from CallListenerClients.NcidClient import NcidClient
from Yac.YacServer import YacServer

runningOutsideXbmc = False
try:
Expand Down Expand Up @@ -45,11 +44,12 @@ def handleIncomingCall(caller):
if caller.caller == "Unknown":
caller.caller = xbmcaddon.getLocalizedString(30602)

xbmc.executebuiltin("XBMC.Notification(%s,%s,%s,%s)" % (xbmcAddon.getLocalizedString(30601) % caller.caller,
caller.number,
int(notificationTimeout),
notificationIcon
))
callerstring = xbmcAddon.getLocalizedString(30601) % caller.caller
xbmc.executebuiltin("XBMC.Notification(%s,%s,%s,%s)" % ('"'+callerstring+'"',
caller.number,
int(notificationTimeout),
notificationIcon
))

activePlayers = json.loads(xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "Player.GetActivePlayers", "id": 1}'))

Expand Down