Fix AttributeError with Plex Companion MyHandler

This commit is contained in:
tomkat83 2016-07-20 07:59:53 +02:00
parent ed8bf235c7
commit 9496785f5d
1 changed files with 1 additions and 1 deletions

View File

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