Convert lbry.getCostInfo() to use URIs
This commit is contained in:
parent
dce87e9079
commit
d3258d9de6
1 changed files with 4 additions and 4 deletions
|
@ -247,8 +247,8 @@ lbry.getCostInfo = function(lbryUri, callback, errorCallback) {
|
||||||
throw new Error(`URI required.`);
|
throw new Error(`URI required.`);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getCostWithData(name, size, callback, errorCallback) {
|
function getCostWithData(lbryUri, size, callback, errorCallback) {
|
||||||
lbry.stream_cost_estimate({name, size}).then((cost) => {
|
lbry.stream_cost_estimate({uri: lbryUri, size}).then((cost) => {
|
||||||
callback({
|
callback({
|
||||||
cost: cost,
|
cost: cost,
|
||||||
includesData: true,
|
includesData: true,
|
||||||
|
@ -256,8 +256,8 @@ lbry.getCostInfo = function(lbryUri, callback, errorCallback) {
|
||||||
}, errorCallback);
|
}, errorCallback);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getCostNoData(name, callback, errorCallback) {
|
function getCostNoData(lbryUri, callback, errorCallback) {
|
||||||
lbry.stream_cost_estimate({name}).then((cost) => {
|
lbry.stream_cost_estimate({uri: lbryUri}).then((cost) => {
|
||||||
callback({
|
callback({
|
||||||
cost: cost,
|
cost: cost,
|
||||||
includesData: false,
|
includesData: false,
|
||||||
|
|
Loading…
Add table
Reference in a new issue