forked from LBRYCommunity/lbry-sdk
Add thumbnail option to name claim
Add thumbnail option to name claim
This commit is contained in:
parent
23b6a8c495
commit
9ef9220689
1 changed files with 3 additions and 1 deletions
|
@ -294,7 +294,7 @@ class LBRYcrdWallet(object):
|
||||||
return d
|
return d
|
||||||
|
|
||||||
def claim_name(self, name, sd_hash, amount, description=None, key_fee=None,
|
def claim_name(self, name, sd_hash, amount, description=None, key_fee=None,
|
||||||
key_fee_address=None):
|
key_fee_address=None, thumbnail=None):
|
||||||
value = {"stream_hash": sd_hash}
|
value = {"stream_hash": sd_hash}
|
||||||
if description is not None:
|
if description is not None:
|
||||||
value['description'] = description
|
value['description'] = description
|
||||||
|
@ -302,6 +302,8 @@ class LBRYcrdWallet(object):
|
||||||
value['key_fee'] = key_fee
|
value['key_fee'] = key_fee
|
||||||
if key_fee_address is not None:
|
if key_fee_address is not None:
|
||||||
value['key_fee_address'] = key_fee_address
|
value['key_fee_address'] = key_fee_address
|
||||||
|
if thumbnail is not None:
|
||||||
|
value['thumbnail'] = thumbnail
|
||||||
d = threads.deferToThread(self._claim_name, name, json.dumps(value), amount)
|
d = threads.deferToThread(self._claim_name, name, json.dumps(value), amount)
|
||||||
|
|
||||||
def _save_metadata(txid):
|
def _save_metadata(txid):
|
||||||
|
|
Loading…
Reference in a new issue