Fix AttributeError with Plex Companion MyHandler

This commit is contained in:
tomkat83 2016-07-20 07:59:53 +02:00
parent ed8bf235c7
commit 9496785f5d

View file

@ -13,11 +13,11 @@ from utils import logging
@logging @logging
class MyHandler(BaseHTTPRequestHandler): class MyHandler(BaseHTTPRequestHandler):
protocol_version = 'HTTP/1.1' protocol_version = 'HTTP/1.1'
regex = re.compile(r'''/playQueues/(\d+)$''')
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
BaseHTTPRequestHandler.__init__(self, *args, **kwargs) BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
self.serverlist = [] self.serverlist = []
self.regex = re.compile(r'''/playQueues/(\d+)$''')
def getServerByHost(self, host): def getServerByHost(self, host):
if len(self.serverlist) == 1: if len(self.serverlist) == 1: