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.

13 lines
363 B

4 years ago
  1. """Discover Kodi servers."""
  2. from . import MDNSDiscoverable
  3. class Discoverable(MDNSDiscoverable):
  4. """Add support for discovering Kodi."""
  5. def __init__(self, nd):
  6. """Initialize the Kodi discovery."""
  7. super(Discoverable, self).__init__(nd, '_http._tcp.local.')
  8. def get_entries(self):
  9. return self.find_by_device_name('Kodi ')