def __init__(self, interface): DeviceDiscoveryService.__init__(self, interface[0], MEDIA_RENDERER_TYPES, [MEDIA_RENDERER_DEVICE_TYPE], REQ_SERVICE_TYPES) self._ports = [] # optionally add a server for the Interactive Web if config.interactive_web_enabled(): iwebport = config.interactive_web_port() self.iweb = InteractiveWeb(iwebport, interface[0]) self.iweb.setServiceParent(self) else: self.iweb = None # add a server for serving photos to UPnP devices self.photoweb = PhotoWeb(0, 5, interface[0]) self.photoweb.setServiceParent(self) self.interface = interface