Don't set to_thumbnail if low_similarity
This commit is contained in:
parent
ba62714955
commit
71fb7c1051
|
@ -107,7 +107,7 @@ async def saucenao(client, message):
|
||||||
to_image = True
|
to_image = True
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
if not to_thumbnail:
|
if not to_thumbnail and not low_similarity:
|
||||||
to_thumbnail = result['header'].get('thumbnail')
|
to_thumbnail = result['header'].get('thumbnail')
|
||||||
atext += '\n\n'
|
atext += '\n\n'
|
||||||
length = len((await client.parser.parse(caption + atext, 'html'))['message'])
|
length = len((await client.parser.parse(caption + atext, 'html'))['message'])
|
||||||
|
|
Loading…
Reference in New Issue