mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-05-19 15:59:32 +08:00
feat: 尝试支持视频标签
This commit is contained in:
6
utils.py
6
utils.py
@@ -3,7 +3,7 @@ from pathlib import Path
|
||||
import aiofiles
|
||||
import httpx
|
||||
from aiofiles.base import AiofilesContextManager
|
||||
from aiofiles.os import makedirs
|
||||
from aiofiles.os import makedirs, remove
|
||||
from aiofiles.ospath import exists
|
||||
from aiofiles.threadpool.text import AsyncTextIOWrapper
|
||||
from bilibili_api import HEADERS
|
||||
@@ -31,3 +31,7 @@ def aopen(
|
||||
path: Path, mode: str = "r", **kwargs
|
||||
) -> AiofilesContextManager[None, None, AsyncTextIOWrapper]:
|
||||
return aiofiles.open(path, mode, **kwargs)
|
||||
|
||||
|
||||
async def aremove(path: Path) -> None:
|
||||
await remove(path)
|
||||
|
||||
Reference in New Issue
Block a user