Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _buildSpotInfo(spotData){
- const config = this._appContext.config
- const httpUserName = config.authentication.user
- const httpPassword = config.authentication.password
- let dir = ''
- let remoteFile = config.urls.remoteServerUrl + '/remote/getStream/type/'+spotData.type+'/stm/'+spotData.file
- let localFileName = spotData.id
- switch(spotData.type){
- case 'custom_class':
- dir = config.dirs.class
- break;
- case 'courtesy':
- dir = config.dirs.courtesy
- localFileName = spotData.file
- remoteFile = null
- break;
- default:
- dir = config.dirs.spots
- break;
- }
- const localFile = dir+localFileName+config.spotExtension
- const options = {
- auth:{
- user: httpUserName ,
- pass: httpPassword
- }
- }
- return {
- options,
- localFile,
- remoteFile
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement