mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-06-15 06:28:17 +08:00
perf: 优化制作组读取自定义制作组的逻辑,避免被空字符串的list影响最终结果
This commit is contained in:
@@ -97,6 +97,8 @@ class ReleaseGroupsMatcher(metaclass=Singleton):
|
||||
if not groups:
|
||||
# 自定义组
|
||||
custom_release_groups = self.systemconfig.get(SystemConfigKey.CustomReleaseGroups)
|
||||
if isinstance(custom_release_groups, list):
|
||||
custom_release_groups = list(filter(None, custom_release_groups))
|
||||
if custom_release_groups:
|
||||
custom_release_groups_str = '|'.join(custom_release_groups)
|
||||
groups = f"{self.__release_groups}|{custom_release_groups_str}"
|
||||
|
||||
Reference in New Issue
Block a user