(self)
Register our service with bonjour.
Register our service with bonjour.
Register our service with bonjour .
def _register_bonjour(self):
        """
        Register our service with bonjour.
        """
        if getattr(settings, 'AIRPLAY_HOSTNAME', None):
            hostname = settings.AIRPLAY_HOSTNAME
        else:    
            hostname = gethostname()
            """
            gethostname() often returns <hostname>.local, remove that.
            """
            hostname = utils.clean_hostname(hostname)
            
            if not hostname:
                hostname = 'Airplayer'
        
        thread.start_new_thread(bonjour.register_service, (hostname, "_airplay._tcp", self._port,))
def _register_bonjour ( self ) : if getattr ( settings , 'AIRPLAY_HOSTNAME' , None ) : hostname = settings . AIRPLAY_HOSTNAME else : hostname = gethostname ( ) """
            gethostname() often returns <hostname>.local, remove that.
            """ hostname = utils . clean_hostname ( hostname ) if not hostname : hostname = 'Airplayer' thread . start_new_thread ( bonjour . register_service , ( hostname , "_airplay._tcp" , self . _port , ) )