예제 #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']
예제 #2
0
 def info_from_entry(self, entry):
     """ Returns the most important info from a uPnP entry. """
     return urlparse(entry.values['location']).hostname
예제 #3
0
 def info_from_entry(self, entry):
     """Returns the most important info from a uPnP entry."""
     return urlparse(entry.values['location']).hostname
예제 #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)
예제 #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)
예제 #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
예제 #7
0
파일: roku.py 프로젝트: fabaff/netdisco
 def info_from_entry(self, entry):
     """Returns the most important info from a uPnP entry."""
     info = urlparse(entry.location)
     return info.hostname, info.port
예제 #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)
예제 #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)