1
0
mirror of https://github.com/fHDHR/fHDHR_NextPVR.git synced 2025-12-06 08:56:57 -05:00

Adjust SSDP Cluster Info Grabbing

This commit is contained in:
deathbybandaid 2020-12-04 08:53:22 -05:00
parent 34ca98881f
commit 33dd833cde

View File

@ -135,6 +135,10 @@ class SSDPServer():
if headers["server"].startswith("fHDHR"):
if headers["location"] != self.location:
savelocation = headers["location"].split("/device.xml")[0]
if savelocation.endswith("/hdhr"):
savelocation = savelocation.replace("/hdhr", '')
elif savelocation.endswith("/rmg"):
savelocation = savelocation.replace("/rmg", '')
self.detect_method.set(savelocation)
except KeyError:
return