def on_start(self): logger.info('HTTP server running at [%s]:%s', self.hostname, self.port) self.server.start() if self.zeroconf_name: self.zeroconf_http = zeroconf.Zeroconf(stype='_http._tcp', name=self.zeroconf_name, port=self.port) self.zeroconf_mopidy_http = zeroconf.Zeroconf( stype='_mopidy-http._tcp', name=self.zeroconf_name, port=self.port) self.zeroconf_http.publish() self.zeroconf_mopidy_http.publish()
def on_start(self): logger.info("HTTP server running at [%s]:%s", self.hostname, self.port) self.server.start() if self.zeroconf_name: self.zeroconf_http = zeroconf.Zeroconf(name=self.zeroconf_name, stype="_http._tcp", port=self.port) self.zeroconf_mopidy_http = zeroconf.Zeroconf( name=self.zeroconf_name, stype="_mopidy-http._tcp", port=self.port, ) self.zeroconf_http.publish() self.zeroconf_mopidy_http.publish()
def on_start(self): if self.zeroconf_name and not network.is_unix_socket( self.server.server_socket): self.zeroconf_service = zeroconf.Zeroconf(name=self.zeroconf_name, stype="_mpd._tcp", port=self.port) self.zeroconf_service.publish()
def on_start(self): if self.zeroconf_name: self.zeroconf_service = zeroconf.Zeroconf(stype='_mpd._tcp', name=self.zeroconf_name, host=self.hostname, port=self.port) if self.zeroconf_service.publish(): logger.debug('Registered MPD with Zeroconf as "%s"', self.zeroconf_service.name) else: logger.debug('Registering MPD with Zeroconf failed.')
def on_start(self): logger.debug('Starting HTTP server') cherrypy.engine.start() logger.info('HTTP server running at %s', cherrypy.server.base()) if self.zeroconf_name: self.zeroconf_service = zeroconf.Zeroconf(stype='_http._tcp', name=self.zeroconf_name, host=self.hostname, port=self.port) if self.zeroconf_service.publish(): logger.debug('Registered HTTP with Zeroconf as "%s"', self.zeroconf_service.name) else: logger.debug('Registering HTTP with Zeroconf failed.')
def on_start(self): if self.zeroconf_name: self.zeroconf_service = zeroconf.Zeroconf( stype='_mpd._tcp', name=self.zeroconf_name, port=self.port) self.zeroconf_service.publish()