feat(kb-bilibili-metadata): Add UP subscription tracking support
- Enhance _extract_up_async() with subscription tracking: - video_count: Number of videos - article_count: Number of articles - subscription_info: Last video/article for update detection - Update CLI to support UP subscription queries - All collection types now support basic_info + subscription status
This commit is contained in:
@@ -49,8 +49,8 @@ def extract_article(extractor: BilibiliExtractor, cvid: str, output_file: str =
|
||||
|
||||
|
||||
def extract_up(extractor: BilibiliExtractor, mid: str, output_file: str = None) -> Dict[str, Any]:
|
||||
"""提取UP主信息"""
|
||||
result = extractor.extract_up_metadata(mid)
|
||||
"""提取UP主信息(包含订阅跟踪所需信息)"""
|
||||
result = asyncio.run(extractor._extract_up_async(mid))
|
||||
|
||||
if output_file:
|
||||
with open(output_file, 'w', encoding='utf-8') as f:
|
||||
|
||||
Reference in New Issue
Block a user