spee.ch/helpers/libraries/publishHelpers.js
2017-06-26 10:02:14 -07:00

27 lines
726 B
JavaScript

const logger = require('winston');
const config = require('config');
const walletAddress = config.get('WalletConfig.LbryAddress');
module.exports = {
createPublishParams (name, filePath, license, nsfw) {
logger.debug(`Creating Publish Parameters for "${name}"`);
const publishParams = {
name,
file_path: filePath,
bid : 0.01,
metadata : {
description: `${name} published via spee.ch`,
title : name,
author : 'spee.ch',
language : 'en',
license,
nsfw,
},
claim_address : walletAddress,
change_address: walletAddress,
};
logger.debug('publishParams:', publishParams);
return publishParams;
},
};