forked from LBRYCommunity/lbry-sdk
fix filter files by outpoint
This commit is contained in:
parent
ac33663444
commit
a132496643
2 changed files with 4 additions and 1 deletions
|
@ -23,7 +23,7 @@ at anytime.
|
|||
### Fixed
|
||||
* Added string comparison to ClaimOutpoint (needed to look things up by outpoint)
|
||||
* Remove unused API commands from daemon
|
||||
*
|
||||
* Fix file filter `outpoint`
|
||||
*
|
||||
|
||||
## [0.9.0rc12] - 2017-03-06
|
||||
|
|
|
@ -15,6 +15,7 @@ from lbrynet.lbryfile.client.EncryptedFileDownloader import EncryptedFileDownloa
|
|||
from lbrynet.lbryfilemanager.EncryptedFileStatusReport import EncryptedFileStatusReport
|
||||
from lbrynet.interfaces import IStreamDownloaderFactory
|
||||
from lbrynet.lbryfile.StreamDescriptor import save_sd_info
|
||||
from lbrynet.core.Wallet import ClaimOutpoint
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
@ -49,6 +50,7 @@ class ManagedEncryptedFileDownloader(EncryptedFileSaver):
|
|||
self.sd_hash = None
|
||||
self.txid = None
|
||||
self.nout = None
|
||||
self.outpoint = None
|
||||
self.name = None
|
||||
self.claim_id = None
|
||||
self.rowid = rowid
|
||||
|
@ -118,6 +120,7 @@ class ManagedEncryptedFileDownloader(EncryptedFileSaver):
|
|||
self.name = name
|
||||
self.txid = txid
|
||||
self.nout = nout
|
||||
self.outpoint = ClaimOutpoint(self.txid, self.nout)
|
||||
else:
|
||||
raise NoSuchSDHash(self.sd_hash)
|
||||
self.claim_id = yield self.wallet.get_claimid(self.name, self.txid, self.nout)
|
||||
|
|
Loading…
Reference in a new issue