Fix ValueError if plex.tv returns Plex Cloud URIs
This commit is contained in:
parent
f00b5fe59d
commit
ed213a4b34
1 changed files with 7 additions and 1 deletions
|
@ -413,7 +413,13 @@ def _poke_pms(pms, queue):
|
|||
data['address'],
|
||||
data['port'])
|
||||
pms['connections'].insert(1, conn)
|
||||
protocol, address, port = url.split(':', 2)
|
||||
try:
|
||||
protocol, address, port = url.split(':', 2)
|
||||
except ValueError:
|
||||
# e.g. .ork.plex.services uri, thanks Plex
|
||||
protocol, address = url.split(':', 1)
|
||||
port = data['port']
|
||||
url = '%s:%s' % (url, port)
|
||||
address = address.replace('/', '')
|
||||
xml = DU().downloadUrl('%s/identity' % url,
|
||||
authenticate=False,
|
||||
|
|
Loading…
Reference in a new issue