Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Commit 5861577

Browse files
sdagueballoob
authored andcommitted
final fix for yamaha discovery (#56)
When discovering zones for the yamaha receiver, we are actually probing the xml of the yamaha specific desc.xml, which provides all the function details of the system (it's kind of soap-esque dump). The generic desc.xml isn't good enough, and if we use that we don't end up with any receivers discovered because no zones are found.
1 parent 15480f8 commit 5861577

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

netdisco/discoverables/yamaha.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ class Discoverable(SSDPDiscoverable):
77

88
def info_from_entry(self, entry):
99
"""Return the most important info from a uPnP entry."""
10-
descurl = entry.values['location']
1110
yam = entry.description['X_device']
1211
# do a slice of the second element so we don't have double /
1312
ctrlurl = (yam['X_URLBase'] +
1413
yam['X_serviceList']['X_service']['X_controlURL'][1:])
14+
descurl = (yam['X_URLBase'] +
15+
yam['X_serviceList']['X_service']['X_unitDescURL'][1:])
1516
device = entry.description['device']
1617

1718
return (device['friendlyName'], device['modelName'], ctrlurl, descurl)

0 commit comments

Comments
 (0)