From 0e4e8c6b3060b1f020cacfb1000183ccb8309e4d Mon Sep 17 00:00:00 2001 From: Gabriel Magno Date: Wed, 11 May 2022 19:36:35 -0300 Subject: [PATCH] Ade debug information with the device XML --- nanodlna/devices.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nanodlna/devices.py b/nanodlna/devices.py index 3c87657..3bb1802 100644 --- a/nanodlna/devices.py +++ b/nanodlna/devices.py @@ -35,6 +35,15 @@ def register_device(location_url): xml = re.sub(" xmlns=\"[^\"]+\"", "", xml, count=1) info = ET.fromstring(xml) + logging.debug( + "Device to be registered: {}".format( + json.dumps({ + "location_url": location_url, + "raw": xml + }) + ) + ) + location = urllibparse.urlparse(location_url) hostname = location.hostname