fix(12-02): add deprecation warning to DeepAnalyzer
- Add logging warning in DeepAnalyzer.__init__ - Warn that Bilibili video should use SRTProcessor instead - Keep functionality intact for Zhihu and other platforms Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -129,6 +129,13 @@ class DeepAnalyzer:
|
|||||||
|
|
||||||
def __init__(self, ai_client: SimpleAIClient = None):
|
def __init__(self, ai_client: SimpleAIClient = None):
|
||||||
self.ai_client = ai_client or SimpleAIClient()
|
self.ai_client = ai_client or SimpleAIClient()
|
||||||
|
# 弃用警告:B站视频应使用 SRTProcessor
|
||||||
|
import logging
|
||||||
|
logger = logging.getLogger(__name__)
|
||||||
|
logger.warning(
|
||||||
|
"DeepAnalyzer is deprecated for Bilibili video processing. "
|
||||||
|
"Use SRTProcessor instead."
|
||||||
|
)
|
||||||
|
|
||||||
def analyze(self, metadata: Dict[str, Any], content: Dict[str, Any], content_type: str = "video") -> AnalysisResult:
|
def analyze(self, metadata: Dict[str, Any], content: Dict[str, Any], content_type: str = "video") -> AnalysisResult:
|
||||||
"""一次性调用 AI 生成完整分析报告
|
"""一次性调用 AI 生成完整分析报告
|
||||||
|
|||||||
Reference in New Issue
Block a user