mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-10-30 20:05:42 +08:00
chore(architecture): keep chain files within complexity budget
This commit is contained in:
@@ -132,7 +132,6 @@ def _scraping_http_snapshot() -> ScrapingHttpPort:
|
||||
raise RuntimeError("刮削 HTTP 端口尚未由启动组合根装配")
|
||||
return http
|
||||
|
||||
|
||||
scraping_lock = Lock()
|
||||
|
||||
current_umask = os.umask(0)
|
||||
@@ -146,7 +145,6 @@ class _MusicScrapeFileResult:
|
||||
metadata_success: bool = True
|
||||
lyrics_status: str = "disabled"
|
||||
|
||||
|
||||
class ScrapingOption:
|
||||
"""刮削选项"""
|
||||
|
||||
@@ -195,7 +193,6 @@ class ScrapingOption:
|
||||
"""是否只在歌词等产物质量更高时替换。"""
|
||||
return self.policy == ScrapingPolicy.UPGRADE
|
||||
|
||||
|
||||
class ScrapingConfig:
|
||||
"""媒体刮削配置"""
|
||||
|
||||
|
||||
@@ -31,8 +31,6 @@ ARTIFACT_FIELDS = {"torrents", "medias", "fileitems", "downloads", "sites", "sub
|
||||
DEFAULT_WORKFLOW_MAX_WORKERS = 4
|
||||
WORKFLOW_EXECUTOR_STOP_TIMEOUT_SECONDS = 10.0
|
||||
CIRCULAR_REFERENCE_PLACEHOLDER = "[Circular]"
|
||||
|
||||
|
||||
def _serialize_workflow_key(key: Any) -> Any:
|
||||
"""将映射键转换为 JSON 安全值。"""
|
||||
if key is None or isinstance(key, (str, int, float, bool)):
|
||||
|
||||
Reference in New Issue
Block a user