From 33dd833cdeb1a1b67e6642b7302931df9192c0ac Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Fri, 4 Dec 2020 08:53:22 -0500 Subject: [PATCH] Adjust SSDP Cluster Info Grabbing --- fHDHR/device/ssdp/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fHDHR/device/ssdp/__init__.py b/fHDHR/device/ssdp/__init__.py index 1c0ea75..e57797f 100644 --- a/fHDHR/device/ssdp/__init__.py +++ b/fHDHR/device/ssdp/__init__.py @@ -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