mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-08-28 11:37:23 +08:00
fix: 更新应用订阅识别词的种子元数据, 附加参数过滤空项
This commit is contained in:
+13
-10
@@ -584,6 +584,8 @@ class SubscribeChain(ChainBase, metaclass=Singleton):
|
|||||||
# 重新识别元数据
|
# 重新识别元数据
|
||||||
torrent_meta = MetaInfo(title=torrent_info.title, subtitle=torrent_info.description,
|
torrent_meta = MetaInfo(title=torrent_info.title, subtitle=torrent_info.description,
|
||||||
custom_words=custom_words_list)
|
custom_words=custom_words_list)
|
||||||
|
# 更新识别元数据缓存
|
||||||
|
context.meta_info = torrent_meta
|
||||||
# 媒体信息需要重新识别
|
# 媒体信息需要重新识别
|
||||||
torrent_mediainfo = None
|
torrent_mediainfo = None
|
||||||
|
|
||||||
@@ -1145,16 +1147,17 @@ class SubscribeChain(ChainBase, metaclass=Singleton):
|
|||||||
# 默认过滤规则
|
# 默认过滤规则
|
||||||
default_rule = self.systemconfig.get(SystemConfigKey.SubscribeDefaultParams) or {}
|
default_rule = self.systemconfig.get(SystemConfigKey.SubscribeDefaultParams) or {}
|
||||||
return {
|
return {
|
||||||
"include": subscribe.include or default_rule.get("include"),
|
key: value for key, value in {
|
||||||
"exclude": subscribe.exclude or default_rule.get("exclude"),
|
"include": subscribe.include or default_rule.get("include"),
|
||||||
"quality": subscribe.quality or default_rule.get("quality"),
|
"exclude": subscribe.exclude or default_rule.get("exclude"),
|
||||||
"resolution": subscribe.resolution or default_rule.get("resolution"),
|
"quality": subscribe.quality or default_rule.get("quality"),
|
||||||
"effect": subscribe.effect or default_rule.get("effect"),
|
"resolution": subscribe.resolution or default_rule.get("resolution"),
|
||||||
"tv_size": default_rule.get("tv_size"),
|
"effect": subscribe.effect or default_rule.get("effect"),
|
||||||
"movie_size": default_rule.get("movie_size"),
|
"tv_size": default_rule.get("tv_size"),
|
||||||
"min_seeders": default_rule.get("min_seeders"),
|
"movie_size": default_rule.get("movie_size"),
|
||||||
"min_seeders_time": default_rule.get("min_seeders_time"),
|
"min_seeders": default_rule.get("min_seeders"),
|
||||||
}
|
"min_seeders_time": default_rule.get("min_seeders_time"),
|
||||||
|
}.items() if value is not None}
|
||||||
|
|
||||||
def subscribe_files_info(self, subscribe: Subscribe) -> Optional[SubscrbieInfo]:
|
def subscribe_files_info(self, subscribe: Subscribe) -> Optional[SubscrbieInfo]:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user