mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 15:38:19 +08:00
Revert "fix(auth): initialize plugin service only during retry auth"
This reverts commit 9f4cf530f8.
This commit is contained in:
+3
-4
@@ -82,10 +82,6 @@ class Scheduler(metaclass=Singleton):
|
|||||||
else:
|
else:
|
||||||
status, msg = SitesHelper().check_user()
|
status, msg = SitesHelper().check_user()
|
||||||
if status:
|
if status:
|
||||||
# 仅重试时,才需要初始化插件服务
|
|
||||||
if self._auth_count > 0:
|
|
||||||
PluginManager().init_config()
|
|
||||||
self.init_plugin_jobs()
|
|
||||||
self._auth_count = 0
|
self._auth_count = 0
|
||||||
logger.info(f"{msg} 用户认证成功")
|
logger.info(f"{msg} 用户认证成功")
|
||||||
SchedulerChain().post_message(
|
SchedulerChain().post_message(
|
||||||
@@ -96,6 +92,9 @@ class Scheduler(metaclass=Singleton):
|
|||||||
link=settings.MP_DOMAIN('#/site')
|
link=settings.MP_DOMAIN('#/site')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
PluginManager().init_config()
|
||||||
|
self.init_plugin_jobs()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
self._auth_count += 1
|
self._auth_count += 1
|
||||||
logger.error(f"用户认证失败:{msg},共失败 {self._auth_count} 次")
|
logger.error(f"用户认证失败:{msg},共失败 {self._auth_count} 次")
|
||||||
|
|||||||
Reference in New Issue
Block a user