diff --git a/app/core/meta/releasegroup.py b/app/core/meta/releasegroup.py index 323549af..82d42af6 100644 --- a/app/core/meta/releasegroup.py +++ b/app/core/meta/releasegroup.py @@ -52,6 +52,7 @@ class ReleaseGroupsMatcher(metaclass=Singleton): "nicept": [], "oshen": [], "ourbits": ['Our(?:Bits|TV)', 'FLTTH', 'Ao', 'PbK', 'MGs', 'iLove(?:HD|TV)'], + "panda": ['Panda', 'AilMWeb'], "piggo": ['PiGo(?:NF|(?:H|WE)B)'], "ptchina": [], "pterclub": ['PTer(?:DIY|Game|(?:M|T)V|WEB|)'], @@ -105,7 +106,7 @@ class ReleaseGroupsMatcher(metaclass=Singleton): else: groups = self.__release_groups title = f"{title} " - groups_re = re.compile(r"(?<=[-@\[£【&])(?:(?:%s))(?=[@.\s\S\]\[】&])" % groups, re.I) + groups_re = re.compile(r"(?<=[-@\[£【&])(?:(?:%s))(?=$|[@.\s\]\[】&])" % groups, re.I) unique_groups = [] for item in re.findall(groups_re, title): item_str = item[0] if isinstance(item, tuple) else item diff --git a/tests/cases/groups.py b/tests/cases/groups.py index 51fe4b07..46cba928 100644 --- a/tests/cases/groups.py +++ b/tests/cases/groups.py @@ -235,6 +235,14 @@ release_group_cases = [ {"title": "Bluey S03 2021 2160p WEB-DL H.265 AAC 2.0-iLoveTV", "group": "iLoveTV"} ] }, + # panda 组 + { + "domain": "panda", + "groups": [ + {"title": "Bluey S03 2021 2160p WEB-DL H.265 AAC 2.0-Panda", "group": "Panda"}, + {"title": "Bluey S03 2021 2160p WEB-DL H.265 AAC 2.0-AilMWeb", "group": "AilMWeb"} + ] + }, # piggo 组 { "domain": "piggo",