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
|
### Fixed
|
||||||
* Added string comparison to ClaimOutpoint (needed to look things up by outpoint)
|
* Added string comparison to ClaimOutpoint (needed to look things up by outpoint)
|
||||||
* Remove unused API commands from daemon
|
* Remove unused API commands from daemon
|
||||||
*
|
* Fix file filter `outpoint`
|
||||||
*
|
*
|
||||||
|
|
||||||
## [0.9.0rc12] - 2017-03-06
|
## [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.lbryfilemanager.EncryptedFileStatusReport import EncryptedFileStatusReport
|
||||||
from lbrynet.interfaces import IStreamDownloaderFactory
|
from lbrynet.interfaces import IStreamDownloaderFactory
|
||||||
from lbrynet.lbryfile.StreamDescriptor import save_sd_info
|
from lbrynet.lbryfile.StreamDescriptor import save_sd_info
|
||||||
|
from lbrynet.core.Wallet import ClaimOutpoint
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -49,6 +50,7 @@ class ManagedEncryptedFileDownloader(EncryptedFileSaver):
|
||||||
self.sd_hash = None
|
self.sd_hash = None
|
||||||
self.txid = None
|
self.txid = None
|
||||||
self.nout = None
|
self.nout = None
|
||||||
|
self.outpoint = None
|
||||||
self.name = None
|
self.name = None
|
||||||
self.claim_id = None
|
self.claim_id = None
|
||||||
self.rowid = rowid
|
self.rowid = rowid
|
||||||
|
@ -118,6 +120,7 @@ class ManagedEncryptedFileDownloader(EncryptedFileSaver):
|
||||||
self.name = name
|
self.name = name
|
||||||
self.txid = txid
|
self.txid = txid
|
||||||
self.nout = nout
|
self.nout = nout
|
||||||
|
self.outpoint = ClaimOutpoint(self.txid, self.nout)
|
||||||
else:
|
else:
|
||||||
raise NoSuchSDHash(self.sd_hash)
|
raise NoSuchSDHash(self.sd_hash)
|
||||||
self.claim_id = yield self.wallet.get_claimid(self.name, self.txid, self.nout)
|
self.claim_id = yield self.wallet.get_claimid(self.name, self.txid, self.nout)
|
||||||
|
|
Loading…
Add table
Reference in a new issue