Support server 3.x with Leia

This commit is contained in:
angelblue05 2019-02-03 22:08:59 -06:00 committed by Claus Vium
parent 8c1903d632
commit 2e2ca1c7aa

View file

@ -118,11 +118,11 @@ class requestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
try:
params = self.get_params()
if not params:
if not params or params.get('Id') is None:
raise IndexError("Incomplete URL format")
if not params.get('Id').isdigit():
raise IndexError("Incorrect Id format %s" % params.get('Id'))
if 'extrafanart' in params['Id']:
raise IndexError("Incorrect Id format %s" % params['Id'])
xbmc.log("[ webservice ] path: %s params: %s" % (str(self.path), str(params)), xbmc.LOGWARNING)