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

Merge pull request #75 from deathbybandaid/dev

Adjust SSDP Cluster Info Grabbing
This commit is contained in:
Deathbybandaid 2020-12-04 08:56:40 -05:00 committed by GitHub
commit 5aa38ebd17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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