Add API stubs for getting info for individual files

- lbry.getFileInfoByName()
 - lbry.getFileInfoBySdHash()
 - lbry.getFileInfoByFilename()
This commit is contained in:
Alex Liebowitz 2016-11-09 06:29:42 -05:00
parent 8456b3d3b2
commit d557c09f80

View file

@ -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);
}