diff --git a/sukuinote/plugins/saucenao.py b/sukuinote/plugins/saucenao.py index 8ce8c00..50bec09 100644 --- a/sukuinote/plugins/saucenao.py +++ b/sukuinote/plugins/saucenao.py @@ -82,8 +82,9 @@ async def saucenao(client, message): pimg = json['body']['illust_details'].get(i) if pimg: if await download_file(pimg, filename, url): - to_image = True - break + if os.path.getsize(filename) < 10000000: + to_image = True + break if await download_file(url, filename): with open(filename) as file: soup = BeautifulSoup(file.read())