From a9329efe9237eefa2fd19306d31787c8464e2a49 Mon Sep 17 00:00:00 2001 From: santiagosayshey Date: Fri, 6 Dec 2024 02:20:34 +1050 Subject: [PATCH] fix(regex): Stop matching amazon in titles --- regex_patterns/Amazon Prime.yml | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/regex_patterns/Amazon Prime.yml b/regex_patterns/Amazon Prime.yml index d05c3c1..6b40586 100644 --- a/regex_patterns/Amazon Prime.yml +++ b/regex_patterns/Amazon Prime.yml @@ -1,5 +1,5 @@ name: Amazon Prime -pattern: \b(amzn|amazon(?![\s.]women)(hd)?)\b +pattern: \b(?:amzn|(?:AMZN|Amazon)(?=\s*(?:WEB-?DL|HD)))\b description: Amazon Prime Video, or simply Prime Video, is an American subscription video on-demand over-the-top streaming and rental service of Amazon offered both as a stand-alone service and as part of Amazon's Prime subscription. @@ -11,25 +11,44 @@ tests: - expected: true id: 1 input: Futurama.S03E01.Amazon Women in the Mood.1080p.AMZN.WEB-DL.DDP2.0.H.264-Yatogam1.mkv - lastRun: '2024-12-04T01:07:12.465724' + lastRun: '2024-12-06T01:59:08.829137' + matchSpan: + end: 51 + start: 47 + matchedContent: AMZN + matchedGroups: [] passes: true - expected: false id: 2 input: Futurama.S03E05.Amazon.Women.in.the.Mood.NF.WEB DL.DDP2.0.x264 CtrlSD.mkv - lastRun: '2024-12-04T01:07:12.465724' + lastRun: '2024-12-06T01:59:08.829137' + matchSpan: null + matchedContent: null + matchedGroups: [] passes: true - expected: false id: 3 input: Amazon.Women.on.the.Moon.1987.720p.BluRay.x264-HANDJOB.mkv - lastRun: '2024-12-04T01:07:12.465724' + lastRun: '2024-12-06T01:59:08.829137' + matchSpan: null + matchedContent: null + matchedGroups: [] passes: true - expected: true id: 4 input: First.Contact.Lost.Tribe.of.the.Amazon.2016.1080p.AMZN.WEB-DL.DDP2.0.H.264-Q0SWeb.mkv - lastRun: '2024-12-04T01:07:12.465724' + lastRun: '2024-12-06T01:59:08.829137' + matchSpan: + end: 54 + start: 50 + matchedContent: AMZN + matchedGroups: [] passes: true - expected: false id: 5 input: First.Contact.Lost.Tribe.of.the.Amazon.2016.1080p.WEB-DL.DDP2.0.H.264-Q0SWeb.mkv - lastRun: '2024-12-04T01:07:12.465724' - passes: false + lastRun: '2024-12-06T01:59:08.829137' + matchSpan: null + matchedContent: null + matchedGroups: [] + passes: true