def info_from_entry(self, entry):
        """Return the most important info from a uPnP entry."""
        url = urlparse(entry.values['location'])

        device = entry.description['device']

        return url.hostname, device['serialNumber']
Beispiel #2
0
 def info_from_entry(self, entry):
     """ Returns the most important info from a uPnP entry. """
     return urlparse(entry.values['location']).hostname
Beispiel #3
0
 def info_from_entry(self, entry):
     """Returns the most important info from a uPnP entry."""
     return urlparse(entry.values['location']).hostname
Beispiel #4
0
 def info_from_entry(self, entry):
     """Return the most important info from a uPnP entry."""
     parsed = urlparse(entry.values['location'])
     return '{}:{}'.format(parsed.hostname, parsed.port)
Beispiel #5
0
    def info_from_entry(self, entry):
        """Returns the most important info from a uPnP entry."""
        url = urlparse(entry.values['location'])

        return (entry.description['device']['modelNumber'], url.hostname)
Beispiel #6
0
 def info_from_entry(self, entry):
     """Return the most important info from a uPnP entry."""
     info = urlparse(entry.location)
     return info.hostname, info.port
Beispiel #7
0
 def info_from_entry(self, entry):
     """Returns the most important info from a uPnP entry."""
     info = urlparse(entry.location)
     return info.hostname, info.port
Beispiel #8
0
    def info_from_entry(self, entry):
        """Returns the most important info from a uPnP entry."""
        url = urlparse(entry.values['location'])

        return (entry.description['device']['modelNumber'], url.hostname)
Beispiel #9
0
 def info_from_entry(self, entry):
     """Returns the most important info from a uPnP entry."""
     parsed = urlparse(entry.values['location'])
     return '{}:{}'.format(parsed.hostname, parsed.port)