mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-04-14 10:10:20 +08:00
fix(module): resolve infinite recursion in get_instance method
This commit is contained in:
@@ -206,7 +206,7 @@ class _DownloaderBase(ServiceBase[TService, DownloaderConf]):
|
||||
:return: 返回指定名称的实例,若 name 为 None 则返回默认实例
|
||||
"""
|
||||
if name:
|
||||
return self.get_instance(name)
|
||||
return self._instances.get(name)
|
||||
return self._default_server
|
||||
|
||||
def get_configs(self) -> List[DownloaderConf]:
|
||||
|
||||
Reference in New Issue
Block a user