Don't use result['data']['source']

This commit is contained in:
blank X 2020-12-24 21:56:55 +07:00
parent 5f3172baf1
commit 5f3f92a7fc
1 changed files with 2 additions and 6 deletions

View File

@ -84,10 +84,6 @@ async def saucenao(client, message):
to_image = True to_image = True
break break
else: else:
if result['data'].get('source'):
if await download_file(result['data']['source'], filename):
to_image = True
if not to_image:
await download_file(result['header']['thumbnail'], filename) await download_file(result['header']['thumbnail'], filename)
to_image = True to_image = True
atext += '\n\n' atext += '\n\n'