mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-05-10 17:42:55 +08:00
chore: 替换掉被标记 deprecated 的方法
This commit is contained in:
@@ -6,7 +6,7 @@ from asyncio.subprocess import DEVNULL
|
||||
from bilibili_api import ass, favorite_list, video
|
||||
from bilibili_api.exceptions import ResponseCodeException
|
||||
from loguru import logger
|
||||
from tortoise import Tortoise
|
||||
from tortoise.connection import connections
|
||||
|
||||
from constants import FFMPEG_COMMAND, MediaStatus, MediaType
|
||||
from credential import credential
|
||||
@@ -20,7 +20,7 @@ anchor = datetime.date.today()
|
||||
|
||||
async def cleanup() -> None:
|
||||
await client.aclose()
|
||||
await Tortoise.close_connections()
|
||||
await connections.close_all()
|
||||
|
||||
|
||||
def concurrent_decorator(concurrency: int) -> callable:
|
||||
|
||||
Reference in New Issue
Block a user