forked from LBRYCommunity/lbry-sdk
fix claim search kwargs in time to first byte script
This commit is contained in:
parent
0f8cf46626
commit
a08232f164
1 changed files with 12 additions and 3 deletions
|
@ -55,10 +55,19 @@ async def main(cmd_args=None):
|
||||||
url_to_claim = {}
|
url_to_claim = {}
|
||||||
try:
|
try:
|
||||||
for page in range(1, cmd_args.download_pages + 1):
|
for page in range(1, cmd_args.download_pages + 1):
|
||||||
start = time.time()
|
start = time.perf_counter()
|
||||||
|
kwargs = {
|
||||||
|
'page': page,
|
||||||
|
# 'claim_type': 'stream',
|
||||||
|
'order_by': ['trending_global'],
|
||||||
|
'no_totals': True
|
||||||
|
}
|
||||||
|
|
||||||
|
# if not cmd_args.allow_fees:
|
||||||
|
# kwargs['fee_amount'] = 0
|
||||||
|
|
||||||
response = await daemon_rpc(
|
response = await daemon_rpc(
|
||||||
conf, 'claim_search', page=page, claim_type='stream', fee_amount=None if cmd_args.allow_fees else 0,
|
conf, 'claim_search', **kwargs
|
||||||
order_by=['trending_global'], no_totals=True
|
|
||||||
)
|
)
|
||||||
if 'error' in response or not response.get('items'):
|
if 'error' in response or not response.get('items'):
|
||||||
print(f'Error getting claim list page {page}:')
|
print(f'Error getting claim list page {page}:')
|
||||||
|
|
Loading…
Reference in a new issue