Skip to content

Commit 274fc2d

Browse files
committed
v2.8.8
- 下载器支持配置路径映射 - 问题修复与细节优化
1 parent 2f1a448 commit 274fc2d

File tree

8 files changed

+10
-9
lines changed

8 files changed

+10
-9
lines changed

app/api/endpoints/login.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from app.core.config import settings
1111
from app.db.systemconfig_oper import SystemConfigOper
1212
from app.helper.sites import SitesHelper # noqa
13-
from app.helper.graphics import WallpaperHelper
13+
from app.helper.image import WallpaperHelper
1414
from app.schemas.types import SystemConfigKey
1515

1616
router = APIRouter()

app/api/endpoints/system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from app.helper.rule import RuleHelper
3333
from app.helper.subscribe import SubscribeHelper
3434
from app.helper.system import SystemHelper
35-
from app.helper.graphics import ImageHelper
35+
from app.helper.image import ImageHelper
3636
from app.log import logger
3737
from app.scheduler import Scheduler
3838
from app.schemas import ConfigChangeEventData

app/chain/recommend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from app.chain.tmdb import TmdbChain
99
from app.core.cache import cached
1010
from app.core.config import settings, global_vars
11-
from app.helper.graphics import ImageHelper
11+
from app.helper.image import ImageHelper
1212
from app.log import logger
1313
from app.schemas import MediaType
1414
from app.utils.common import log_execution_time

app/helper/directory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from app.schemas.types import SystemConfigKey
1010
from app.utils.system import SystemUtils
1111

12-
JINJA2_VAR_PATTERN = re.compile(r"\{\{.*?\}\}", re.DOTALL)
12+
JINJA2_VAR_PATTERN = re.compile(r"\{\{.*?}}", re.DOTALL)
1313

1414

1515
class DirectoryHelper:
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ def _validate_image(content: bytes) -> bool:
199199
logger.warn(f"Invalid image format: {e}")
200200
return False
201201

202-
def _get_request_params(self, url: str, proxy: Optional[bool], cookies: Optional[str | dict]) -> dict:
202+
@staticmethod
203+
def _get_request_params(url: str, proxy: Optional[bool], cookies: Optional[str | dict]) -> dict:
203204
"""获取参数"""
204205
referer = "https://movie.douban.com/" if "doubanio.com" in url else None
205206
if proxy is None:

app/modules/telegram/telegram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from app.core.context import MediaInfo, Context
1414
from app.core.metainfo import MetaInfo
1515
from app.helper.thread import ThreadHelper
16-
from app.helper.graphics import ImageHelper
16+
from app.helper.image import ImageHelper
1717
from app.log import logger
1818
from app.utils.common import retry
1919
from app.utils.http import RequestUtils

app/scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from app.db.systemconfig_oper import SystemConfigOper
2828
from app.helper.message import MessageHelper
2929
from app.helper.sites import SitesHelper # noqa
30-
from app.helper.graphics import WallpaperHelper
30+
from app.helper.image import WallpaperHelper
3131
from app.log import logger
3232
from app.schemas import Notification, NotificationType, Workflow
3333
from app.schemas.types import EventType, SystemConfigKey

version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
APP_VERSION = 'v2.8.7'
2-
FRONTEND_VERSION = 'v2.8.7'
1+
APP_VERSION = 'v2.8.8'
2+
FRONTEND_VERSION = 'v2.8.8'

0 commit comments

Comments
 (0)