mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 16:07:01 +08:00
fix: bound long-lived cache state
This commit is contained in:
+1
-2
@@ -84,13 +84,12 @@ class ScrapingOption:
|
||||
class ScrapingConfig:
|
||||
"""媒体刮削配置"""
|
||||
|
||||
_policies: dict[tuple[str], ScrapingOption] = {}
|
||||
|
||||
def __init__(self, config_dict: dict[str, str] = None):
|
||||
"""
|
||||
初始化配置对象
|
||||
:param config_dict: 用户配置字典(扁平化格式),为 None 时使用默认配置
|
||||
"""
|
||||
self._policies: dict[tuple[str, str], ScrapingOption] = {}
|
||||
# 合并用户配置和默认配置
|
||||
if config_dict is None:
|
||||
config_dict = {}
|
||||
|
||||
Reference in New Issue
Block a user