You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
453 B

4 years ago
  1. """Discover IGD services."""
  2. from . import SSDPDiscoverable
  3. class Discoverable(SSDPDiscoverable):
  4. """Add support for discovering IGD services."""
  5. def get_entries(self):
  6. """Get all the IGD service uPnP entries."""
  7. return \
  8. self.find_by_st(
  9. "urn:schemas-upnp-org:device:InternetGatewayDevice:1") + \
  10. self.find_by_st(
  11. "urn:schemas-upnp-org:device:InternetGatewayDevice:2")