fix/ci-deploy-reset #10
@@ -170,9 +170,11 @@ class BilibiliAdapter(PlatformAdapter):
|
|||||||
ValueError: If content_type is not supported
|
ValueError: If content_type is not supported
|
||||||
"""
|
"""
|
||||||
if content_type == "video":
|
if content_type == "video":
|
||||||
return self._extractor.extract_video_metadata(content_id)
|
# Call async method directly to avoid nested asyncio.run()
|
||||||
|
return await self._extractor._extract_video_async(content_id)
|
||||||
elif content_type == "article":
|
elif content_type == "article":
|
||||||
return self._extractor.extract_article_metadata(content_id)
|
# Call async method directly to avoid nested asyncio.run()
|
||||||
|
return await self._extractor._extract_article_async(content_id)
|
||||||
else:
|
else:
|
||||||
raise ValueError(f"Unsupported content type: {content_type}")
|
raise ValueError(f"Unsupported content type: {content_type}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user