feat: add bilibili upload skill

This commit is contained in:
home-dev-pookz
2026-03-25 03:46:17 +08:00
parent 1bc8ae7698
commit 6d3fc819b3
9 changed files with 318 additions and 26 deletions
@@ -0,0 +1,37 @@
from __future__ import annotations
import subprocess
import sys
from pathlib import Path
from conf import BASE_DIR
from utils.constant import VideoZoneTypes
def main() -> None:
cli_path = Path(BASE_DIR) / "sau_cli.py"
command = [
sys.executable,
str(cli_path),
"bilibili",
"upload-video",
"--account",
"creator",
"--file",
str(Path(BASE_DIR) / "videos" / "demo.mp4"),
"--title",
"Bilibili CLI Demo",
"--desc",
"Bilibili CLI Demo",
"--tid",
str(VideoZoneTypes.SPORTS_FOOTBALL.value),
"--tags",
"足球,测试",
"--schedule",
"2026-03-26 16:00",
]
subprocess.run(command, check=True)
if __name__ == "__main__":
main()