refactor(helper): 将DirectoryHelper、RuleHelper和TorrentHelper方法改为静态方法

- 移除不必要的实例化操作,直接使用类方法
This commit is contained in:
Attente
2026-03-13 19:50:10 +08:00
parent e09cfc6704
commit b89825525a
20 changed files with 81 additions and 79 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ class StorageChain(ChainBase):
associated_dir = max(
(
Path(p)
for d in DirectoryHelper().get_dirs()
for d in DirectoryHelper.get_dirs()
for p in (d.download_path, d.library_path)
if p and fileitem_path.is_relative_to(p)
),