Update logging

This commit is contained in:
tomkat83 2016-04-09 16:12:43 +02:00
parent e0642c96cb
commit 1c68668eba

View file

@ -32,10 +32,10 @@ class Main:
# MAIN ENTRY POINT # MAIN ENTRY POINT
def __init__(self): def __init__(self):
# Parse parameters # Parse parameters
xbmc.log("Full sys.argv received: %s" % sys.argv) xbmc.log("PlexKodiConnect - Full sys.argv received: %s" % sys.argv)
base_url = sys.argv[0] base_url = sys.argv[0]
params = urlparse.parse_qs(sys.argv[2][1:]) params = urlparse.parse_qs(sys.argv[2][1:])
xbmc.log("Parameter string: %s" % sys.argv[2]) xbmc.log("PlexKodiConnect - Parameter string: %s" % sys.argv[2])
try: try:
mode = params['mode'][0] mode = params['mode'][0]
itemid = params.get('id', '') itemid = params.get('id', '')