mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
refactor: reorganize backend module boundaries
This commit is contained in:
@@ -5,14 +5,14 @@ from threading import Lock
|
||||
from typing import Any, Dict, List, Optional, Tuple
|
||||
|
||||
from app.chain.transfer import TransferChain
|
||||
from app.platform.cache import TTLCache
|
||||
from app.platform.config import settings
|
||||
from app.runtime.cache import TTLCache
|
||||
from app.runtime.config import settings
|
||||
from app.db.transferhistory_oper import TransferHistoryOper
|
||||
from app.services.directory import DirectoryHelper
|
||||
from app.services.history import (HistoryGateAction, describe_history_gate,
|
||||
from app.application.directory import DirectoryHelper
|
||||
from app.application.history import (HistoryGateAction, describe_history_gate,
|
||||
evaluate_history_gate, is_skip_action,
|
||||
max_failed_retries, resolve_history)
|
||||
from app.platform.log import logger
|
||||
from app.runtime.log import logger
|
||||
from app.modules.filemanager.fsproxy import fsproxy
|
||||
from app.schemas import FileItem
|
||||
from app.schemas.types import MediaType
|
||||
@@ -92,7 +92,7 @@ class TransferDispatcher:
|
||||
"""
|
||||
依据整理历史判断本次是否跳过整理。
|
||||
|
||||
判定策略由 app/services/history.py 统一提供,整理链的计划整理段使用
|
||||
判定策略由 app/application/history.py 统一提供,整理链的计划整理段使用
|
||||
同一套判定,避免此处放行的文件在下游被另一套「存在记录即拦」的策略收回。
|
||||
:param storage: 存储
|
||||
:param src_path: 整理记录使用的源路径
|
||||
|
||||
Reference in New Issue
Block a user