mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-04 23:17:20 +08:00
fix: 修复站点批量导入报错(重复方法覆盖导致异步调用失效)
This commit is contained in:
@@ -21,7 +21,7 @@ class SiteMutationRepository(Protocol):
|
||||
"""读取指定站点。"""
|
||||
...
|
||||
|
||||
async def get_by_domain(self, domain: str) -> Optional[Any]:
|
||||
async def async_get_by_domain(self, domain: str) -> Optional[Any]:
|
||||
"""按域名读取站点。"""
|
||||
...
|
||||
|
||||
@@ -90,7 +90,7 @@ class SiteMutationCommand:
|
||||
site_info = await self._indexer_loader(domain)
|
||||
if not site_info:
|
||||
return SiteMutationResult(False, "该站点不支持,请检查站点域名是否正确")
|
||||
if await self._repository.get_by_domain(domain):
|
||||
if await self._repository.async_get_by_domain(domain):
|
||||
return SiteMutationResult(False, f"{domain} 站点己存在")
|
||||
|
||||
values.update({
|
||||
|
||||
Reference in New Issue
Block a user