Fix submited by for context menue
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
SebClem 2023-11-02 22:20:33 +01:00
parent 703feb8ca3
commit 9759eb7bf4
2 changed files with 5 additions and 5 deletions

View File

@ -59,7 +59,7 @@ async def pixivprev(interaction: discord.Interaction, url: str):
loop = asyncio.get_running_loop()
data = await loop.run_in_executor(
None,
pixiv_api.dowload_pixiv_images,
pixiv_api.download_pixiv_images,
int(match.group("id")),
tmp_dir,
REFRESH_TOKEN,
@ -95,7 +95,7 @@ async def pixiv_preview(interaction: discord.Interaction, message: discord.Messa
loop = asyncio.get_running_loop()
data = await loop.run_in_executor(
None,
pixiv_api.dowload_pixiv_images,
pixiv_api.download_pixiv_images,
int(match.group("id")),
tmp_dir,
REFRESH_TOKEN,
@ -116,7 +116,7 @@ async def pixiv_preview(interaction: discord.Interaction, message: discord.Messa
title=title,
art_author=author,
url=match.group("url"),
author=interaction.user,
author=message.author,
)
else:
await interaction.response.send_message(
@ -140,7 +140,7 @@ async def on_message(message: discord.Message):
loop = asyncio.get_running_loop()
data = await loop.run_in_executor(
None,
pixiv_api.dowload_pixiv_images,
pixiv_api.download_pixiv_images,
int(match.group("id")),
tmp_dir,
REFRESH_TOKEN,

View File

@ -13,7 +13,7 @@ if max_thread_num > 10:
max_thread_num = 10
def dowload_pixiv_images(
def download_pixiv_images(
illust_id: int,
dest_folder: str,
refresh_token: str,