Add API stubs for getting info for individual files
- lbry.getFileInfoByName() - lbry.getFileInfoBySdHash() - lbry.getFileInfoByFilename()
This commit is contained in:
parent
8456b3d3b2
commit
d557c09f80
1 changed files with 12 additions and 0 deletions
12
js/lbry.js
12
js/lbry.js
|
@ -242,6 +242,18 @@ lbry.getFilesInfo = function(callback) {
|
|||
lbry.call('get_lbry_files', {}, callback);
|
||||
}
|
||||
|
||||
lbry.getFileInfoByName = function(name, callback) {
|
||||
lbry.call('get_lbry_file', {name: name}, callback);
|
||||
}
|
||||
|
||||
lbry.getFileInfoBySdHash = function(sdHash, callback) {
|
||||
lbry.call('get_lbry_file', {sd_hash: sdHash}, callback);
|
||||
}
|
||||
|
||||
lbry.getFileInfoByFilename = function(filename, callback) {
|
||||
lbry.call('get_lbry_file', {file_name: filename}, callback);
|
||||
}
|
||||
|
||||
lbry.getMyClaims = function(callback) {
|
||||
lbry.call('get_name_claims', {}, callback);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue