forked from LBRYCommunity/lbry-sdk
fix search results
This commit is contained in:
parent
ba2e4df76b
commit
bb3ba53c6e
1 changed files with 2 additions and 1 deletions
|
@ -1898,10 +1898,11 @@ class LBRYDaemon(jsonrpc.JSONRPC):
|
||||||
for i in n:
|
for i in n:
|
||||||
if i[0]:
|
if i[0]:
|
||||||
tr = {}
|
tr = {}
|
||||||
tr.update(i[1][0])
|
tr.update(i[1][0]['value'])
|
||||||
thumb = tr.get('thumbnail', None)
|
thumb = tr.get('thumbnail', None)
|
||||||
if thumb is None:
|
if thumb is None:
|
||||||
tr['thumbnail'] = "img/Free-speech-flag.svg"
|
tr['thumbnail'] = "img/Free-speech-flag.svg"
|
||||||
|
tr['name'] = i[1][0]['name']
|
||||||
tr['cost_est'] = i[1][1]
|
tr['cost_est'] = i[1][1]
|
||||||
t.append(tr)
|
t.append(tr)
|
||||||
return t
|
return t
|
||||||
|
|
Loading…
Reference in a new issue