mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 15:38:19 +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 则返回默认实例
|
:return: 返回指定名称的实例,若 name 为 None 则返回默认实例
|
||||||
"""
|
"""
|
||||||
if name:
|
if name:
|
||||||
return self.get_instance(name)
|
return self._instances.get(name)
|
||||||
return self._default_server
|
return self._default_server
|
||||||
|
|
||||||
def get_configs(self) -> List[DownloaderConf]:
|
def get_configs(self) -> List[DownloaderConf]:
|
||||||
|
|||||||
Reference in New Issue
Block a user