lbryio / lbryio/lbry-sdk

any languages search param only looks at first language on a claim

Open
#3,328 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: bug
Dominant language
Python
Stars
7.2k
Forks
493
PR merge metrics
No merged PRs in 30d

Description

{"jsonrpc":"2.0","method":"claim_search","params":{"page_size":20,"page":1,"claim_type":["stream"],
"no_totals":true, "order_by":["release_time"],"fee_amount":">=0","channel_ids":["c43829de0501611df20b2223304a10c142aa6ab1"],"release_time":"<1623342240",
"any_languages":["en"],"include_purchase_receipt":true},"id":1623342293609}

claim that's not returned: 06932f603dcc276e9836e7e8c06cfad850df669d

                      "languages": [
                            "fr",
                            "en"
                        ],

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the JSON-RPC claim_search entry point and trace how the any_languages parameter is applied to a claim's languages array. Reproduce the example with claim 06932f603dcc276e9836e7e8c06cfad850df669d and verify that a claim matching any requested language is returned, including when the match is not the first language.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.