Fix AttributeError with Plex Companion MyHandler
This commit is contained in:
parent
ed8bf235c7
commit
9496785f5d
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue