(self, host, port, username=None, password=None)
Make sure the folder is world readable, since XBMC might be running as a
        different user then Airplayer.
        
        As pointed out at https://github.com/PascalW/Airplayer/issues#issue/9
Make sure the folder is world readable, since XBMC might be running as a
        different user then Airplayer.
        
        As pointed out at https://github.com/PascalW/Airplayer/issues#issue/9
Make sure the folder is world readable since XBMC might be running as a different user then Airplayer . As pointed out at https : // github . com / PascalW / Airplayer / issues#issue / 9
def __init__(self, host, port, username=None, password=None):
        super(XBMCMediaBackend, self).__init__(host, port, username, password)
        
        self._last_wakeup = None
        self._jsonrpc = jsonrpclib.Server(self._jsonrpc_connection_string())
        self._TMP_DIR = tempfile.mkdtemp()
        
        """
        Make sure the folder is world readable, since XBMC might be running as a
        different user then Airplayer.
        
        As pointed out at https://github.com/PascalW/Airplayer/issues#issue/9
        """
        os.chmod(self._TMP_DIR, 0755)
        
        self.log.debug('TEMP DIR: %s', self._TMP_DIR)
def __init__ ( self , host , port , username = None , password = None ) : super ( XBMCMediaBackend , self ) . __init__ ( host , port , username , password ) self . _last_wakeup = None self . _jsonrpc = jsonrpclib . Server ( self . _jsonrpc_connection_string ( ) ) self . _TMP_DIR = tempfile . mkdtemp ( ) os . chmod ( self . _TMP_DIR , 0755 ) self . log . debug ( 'TEMP DIR: %s' , self . _TMP_DIR )