Skip to content

Commit

Permalink
Ade debug information with the device XML
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmagno committed May 11, 2022
1 parent fab9194 commit 0e4e8c6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nanodlna/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0e4e8c6

Please sign in to comment.