urban: use variable from previous commit in result formatting

This commit is contained in:
jkhsjdhjs 2020-11-20 16:18:14 +00:00
parent fa18d1b3eb
commit afbcf2e951

View File

@ -45,7 +45,7 @@ class Urban(Plugin):
# Format and return result
return '[{idx}/{len}] \x02{word}\x02: {definition} - {example}'.format(
idx=index + 1,
len=len(data['list']),
len=res_length,
word=res['word'],
definition=res['definition'].replace('\r\n', ' '),
example=res['example'].replace('\r\n', ' '),