From fe6de27099a76288defc12c13a30005e43f5e403 Mon Sep 17 00:00:00 2001 From: santiagosayshey Date: Mon, 6 Jan 2025 16:15:19 +1050 Subject: [PATCH] improvement(regex): Regex patterns for prior Atmos improvements --- regex_patterns/Atmos.yml | 40 ++++++++++++++++++++++++++++++++++- regex_patterns/BTN Atmos.yml | 41 ++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 regex_patterns/BTN Atmos.yml diff --git a/regex_patterns/Atmos.yml b/regex_patterns/Atmos.yml index 50a6e98..50eada5 100644 --- a/regex_patterns/Atmos.yml +++ b/regex_patterns/Atmos.yml @@ -4,4 +4,42 @@ description: '' tags: - Audio - Enhancement -tests: [] +tests: +- expected: false + id: 1 + input: The.Last.of.Us.S01.2160p.UHD.BluRay.Remux.TrueHDA7.1.H.265-PmP + lastRun: '2025-01-06T15:07:07.378833' + matchSpan: null + matchedContent: null + matchedGroups: [] + passes: true +- expected: true + id: 2 + input: The.Last.of.Us.S01.UHD.BluRay.2160p.TrueHD.Atmos.7.1.DV.HEVC.REMUX-FraMeSToR + lastRun: '2025-01-06T15:07:07.378833' + matchSpan: + end: 48 + start: 43 + matchedContent: Atmos + matchedGroups: + - '' + passes: true +- expected: true + id: 3 + input: The Last of Us S01 2160p MAX WEB-DL DDP 5.1 Atmos DV HDR H.265-FLUX + lastRun: '2025-01-06T15:07:07.378833' + matchSpan: + end: 49 + start: 44 + matchedContent: Atmos + matchedGroups: + - '' + passes: true +- expected: false + id: 4 + input: The.Last.of.Us.S01.DV.HDR.2160p.MAX.WEB-DL.DDPA5.1.H.265-FLUX + lastRun: '2025-01-06T15:07:07.378833' + matchSpan: null + matchedContent: null + matchedGroups: [] + passes: true diff --git a/regex_patterns/BTN Atmos.yml b/regex_patterns/BTN Atmos.yml new file mode 100644 index 0000000..6f9d42a --- /dev/null +++ b/regex_patterns/BTN Atmos.yml @@ -0,0 +1,41 @@ +name: BTN Atmos +pattern: \bTrue[ .-]?HDA[57].1|DDPA[57].1\b +description: Matches BroadcastTheNet Atmos naming convention +tags: [] +tests: +- expected: true + id: 1 + input: The.Last.of.Us.S01.2160p.UHD.BluRay.Remux.TrueHDA7.1.H.265-PmP + lastRun: '2025-01-06T15:05:19.738290' + matchSpan: + end: 52 + start: 42 + matchedContent: TrueHDA7.1 + matchedGroups: [] + passes: true +- expected: false + id: 2 + input: The.Last.of.Us.S01.UHD.BluRay.2160p.TrueHD.Atmos.7.1.DV.HEVC.REMUX-FraMeSToR + lastRun: '2025-01-06T15:05:19.738290' + matchSpan: null + matchedContent: null + matchedGroups: [] + passes: true +- expected: false + id: 3 + input: The Last of Us S01 2160p MAX WEB-DL DDP 5.1 Atmos DV HDR H.265-FLUX + lastRun: '2025-01-06T15:05:19.738290' + matchSpan: null + matchedContent: null + matchedGroups: [] + passes: true +- expected: true + id: 4 + input: The.Last.of.Us.S01.DV.HDR.2160p.MAX.WEB-DL.DDPA5.1.H.265-FLUX + lastRun: '2025-01-06T15:05:19.738290' + matchSpan: + end: 50 + start: 43 + matchedContent: DDPA5.1 + matchedGroups: [] + passes: true