自动同步: 2026-03-20 02:10

This commit is contained in:
2026-03-20 02:10:10 +08:00
parent d2a5e9a6ad
commit d9a5daca0a
67 changed files with 1526 additions and 220 deletions
+5 -4
View File
@@ -49,7 +49,7 @@ def process_command(
from .pipeline.pipeline import Pipeline
from .pipeline.processors import (
ASRProcessor, AnalyzeProcessor, ArchiveProcessor,
DownloadProcessor, ParseProcessor
DownloadProcessor, ParseProcessor, SRTProcessor
)
from .pipeline.schemas import PipelineConfig
@@ -63,13 +63,14 @@ def process_command(
ParseProcessor(),
DownloadProcessor(),
ASRProcessor(),
AnalyzeProcessor(),
SRTProcessor(), # B站视频使用
AnalyzeProcessor(), # 知乎/文章使用
ArchiveProcessor(),
]
# Create pipeline config
config = PipelineConfig(
steps=["parse", "download", "asr", "analyze", "archive"],
steps=["parse", "download", "asr", "srt", "analyze", "archive"],
output_dir=out_dir,
skip_completed=skip_completed,
)
@@ -165,7 +166,7 @@ def login_command(
result = login.login_by_qrcode()
if result.success and result.cookie_str:
manager.save_cookie(result.cookie_str)
return result.model_dump()
return result.model_dump(mode='json')
except Exception as e:
return {"success": False, "error": str(e)}