mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-04 23:17:20 +08:00
Merge remote-tracking branch 'origin/v2' into v2
This commit is contained in:
@@ -919,6 +919,8 @@ class Context:
|
||||
media_info_is_target: bool = False
|
||||
# 调用方对本候选允许下载的剧集集合,None 表示不限制,空集合表示拒绝交付任何集。
|
||||
allowed_episodes: Optional[Set[int]] = None
|
||||
# 下载层确认候选资源覆盖完整目标范围,供订阅事实写入判断整包资源。
|
||||
confirmed_full_coverage: bool = False
|
||||
|
||||
def to_dict(self):
|
||||
"""
|
||||
@@ -935,4 +937,5 @@ class Context:
|
||||
"media_info_is_target": self.media_info_is_target,
|
||||
# 保留 None / 空集 / 非空集 三态语义,避免下游误把"显式拒绝"当成"不限制"。
|
||||
"allowed_episodes": sorted(self.allowed_episodes) if self.allowed_episodes is not None else None,
|
||||
"confirmed_full_coverage": self.confirmed_full_coverage,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user