- 下载器支持配置路径映射
- 问题修复与细节优化
This commit is contained in:
jxxghp
2025-12-10 14:33:13 +08:00
parent 2f1a448afe
commit 274fc2d74f
8 changed files with 10 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ from app.core import security
from app.core.config import settings
from app.db.systemconfig_oper import SystemConfigOper
from app.helper.sites import SitesHelper # noqa
from app.helper.graphics import WallpaperHelper
from app.helper.image import WallpaperHelper
from app.schemas.types import SystemConfigKey
router = APIRouter()

View File

@@ -32,7 +32,7 @@ from app.helper.progress import ProgressHelper
from app.helper.rule import RuleHelper
from app.helper.subscribe import SubscribeHelper
from app.helper.system import SystemHelper
from app.helper.graphics import ImageHelper
from app.helper.image import ImageHelper
from app.log import logger
from app.scheduler import Scheduler
from app.schemas import ConfigChangeEventData

View File

@@ -8,7 +8,7 @@ from app.chain.douban import DoubanChain
from app.chain.tmdb import TmdbChain
from app.core.cache import cached
from app.core.config import settings, global_vars
from app.helper.graphics import ImageHelper
from app.helper.image import ImageHelper
from app.log import logger
from app.schemas import MediaType
from app.utils.common import log_execution_time

View File

@@ -9,7 +9,7 @@ from app.log import logger
from app.schemas.types import SystemConfigKey
from app.utils.system import SystemUtils
JINJA2_VAR_PATTERN = re.compile(r"\{\{.*?\}\}", re.DOTALL)
JINJA2_VAR_PATTERN = re.compile(r"\{\{.*?}}", re.DOTALL)
class DirectoryHelper:

View File

@@ -199,7 +199,8 @@ class ImageHelper(metaclass=Singleton):
logger.warn(f"Invalid image format: {e}")
return False
def _get_request_params(self, url: str, proxy: Optional[bool], cookies: Optional[str | dict]) -> dict:
@staticmethod
def _get_request_params(url: str, proxy: Optional[bool], cookies: Optional[str | dict]) -> dict:
"""获取参数"""
referer = "https://movie.douban.com/" if "doubanio.com" in url else None
if proxy is None:

View File

@@ -13,7 +13,7 @@ from app.core.config import settings
from app.core.context import MediaInfo, Context
from app.core.metainfo import MetaInfo
from app.helper.thread import ThreadHelper
from app.helper.graphics import ImageHelper
from app.helper.image import ImageHelper
from app.log import logger
from app.utils.common import retry
from app.utils.http import RequestUtils

View File

@@ -27,7 +27,7 @@ from app.core.plugin import PluginManager
from app.db.systemconfig_oper import SystemConfigOper
from app.helper.message import MessageHelper
from app.helper.sites import SitesHelper # noqa
from app.helper.graphics import WallpaperHelper
from app.helper.image import WallpaperHelper
from app.log import logger
from app.schemas import Notification, NotificationType, Workflow
from app.schemas.types import EventType, SystemConfigKey

View File

@@ -1,2 +1,2 @@
APP_VERSION = 'v2.8.7'
FRONTEND_VERSION = 'v2.8.7'
APP_VERSION = 'v2.8.8'
FRONTEND_VERSION = 'v2.8.8'