fix(kb-workflow): 修正路径管理和子技能逻辑
- kb_workflow.py: 修复目录查询命令(--pending, --metadata等) - bilibili_metadata.py: headless默认True,逻辑保持纯净 - deep_analyzer.py: 添加缺失的pathlib.Path导入 - SKILL.md: 更新步骤说明,明确由workflow提供路径给子技能 fix: 修复Playwright启动失败(NameError)和路径自动获取问题
This commit is contained in:
@@ -12,14 +12,14 @@
|
||||
## Commands
|
||||
|
||||
```bash
|
||||
# Download video
|
||||
python bilibili_content.py --id "BV1xx411c7mD" --type video --quality 480
|
||||
# Download video (传入 --output 指定完整路径)
|
||||
python bilibili_content.py --id "BV1xx411c7mD" --type video --quality 480 --output "/path/to/downloads/BV1xx.mp4"
|
||||
|
||||
# Extract subtitle
|
||||
python bilibili_content.py --id "BV1xx411c7mD" --type subtitle
|
||||
# Extract subtitle (传入 --output 指定完整路径)
|
||||
python bilibili_content.py --id "BV1xx411c7mD" --type subtitle --output "/path/to/subtitles/BV1xx.srt"
|
||||
|
||||
# Get article content
|
||||
python bilibili_content.py --id "cv43780186" --type article
|
||||
# Get article content (传入 --output 指定完整路径)
|
||||
python bilibili_content.py --id "cv43780186" --type article --output "/path/to/article.md"
|
||||
```
|
||||
|
||||
## Output
|
||||
@@ -27,13 +27,10 @@ python bilibili_content.py --id "cv43780186" --type article
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"data": {
|
||||
"platform": "bilibili",
|
||||
"type": "video",
|
||||
"id": "BV1xx411c7mD",
|
||||
"video_file": {"path": "output/BV1xx.mp4", "quality": "480p"},
|
||||
"subtitle": {"path": "output/BV1xx.srt"}
|
||||
}
|
||||
"type": "video",
|
||||
"filename": "BV1xx.mp4",
|
||||
"filepath": "/path/to/downloads/BV1xx.mp4",
|
||||
"message": "下载完成"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user