From 2e2ca1c7aad6f7dafa3f935a36c6c0ccb8557061 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sun, 3 Feb 2019 22:08:59 -0600 Subject: [PATCH] Support server 3.x with Leia --- resources/lib/webservice.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/lib/webservice.py b/resources/lib/webservice.py index 99b23c88..ce18abb0 100644 --- a/resources/lib/webservice.py +++ b/resources/lib/webservice.py @@ -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)