mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 15:38:19 +08:00
refactor: expand chain runtime config snapshot
This commit is contained in:
@@ -8,7 +8,7 @@ from app.chain.douban import DoubanChain
|
||||
from app.chain.listenbrainz import ListenBrainzChain
|
||||
from app.chain.tmdb import TmdbChain
|
||||
from app.runtime.cache import cached, fresh
|
||||
from app.runtime.config import settings, global_vars
|
||||
from app.runtime.config import global_vars
|
||||
from app.domain.context import MusicInfo
|
||||
from app.application.image import ImageHelper
|
||||
from app.runtime.log import logger
|
||||
@@ -272,7 +272,7 @@ class RecommendChain(ChainBase, metaclass=Singleton):
|
||||
:param datas: 数据列表
|
||||
:param progress_callback: 定时服务进度更新回调
|
||||
"""
|
||||
if not settings.GLOBAL_IMAGE_CACHE:
|
||||
if not self.runtime_config.global_image_cache:
|
||||
return
|
||||
|
||||
total_num = len(datas)
|
||||
|
||||
Reference in New Issue
Block a user