Esempio n. 1
0
    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']
Esempio n. 2
0
 def info_from_entry(self, entry):
     """ Returns the most important info from a uPnP entry. """
     return urlparse(entry.values['location']).hostname
Esempio n. 3
0
 def info_from_entry(self, entry):
     """Returns the most important info from a uPnP entry."""
     return urlparse(entry.values['location']).hostname
Esempio n. 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)
Esempio n. 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)
Esempio n. 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
Esempio n. 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
Esempio n. 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)
Esempio n. 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)