From 169d41c5e0776f7f931fffb96627dcb13e1df070 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 15 Nov 2016 05:33:01 +0800 Subject: [PATCH] Fix format pattern issues (e.g. MA in MAN was cleaned in non-strict mode) --- source/net/filebot/media/ReleaseInfo.java | 1 - source/net/filebot/media/ReleaseInfo.properties | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/source/net/filebot/media/ReleaseInfo.java b/source/net/filebot/media/ReleaseInfo.java index 8956df56..bfa7d1f6 100644 --- a/source/net/filebot/media/ReleaseInfo.java +++ b/source/net/filebot/media/ReleaseInfo.java @@ -188,7 +188,6 @@ public class ReleaseInfo { return items.stream().map(it -> { String head = strict ? clean(it, stopwords[b]) : substringBefore(it, stopwords[b]); String norm = normalizePunctuation(clean(head, blacklist[b])); - // debug.finest(format("CLEAN: %s => %s => %s", it, head, norm)); return norm; }).filter(s -> s.length() > 0).collect(toList()); } diff --git a/source/net/filebot/media/ReleaseInfo.properties b/source/net/filebot/media/ReleaseInfo.properties index cf91f113..60676a42 100644 --- a/source/net/filebot/media/ReleaseInfo.properties +++ b/source/net/filebot/media/ReleaseInfo.properties @@ -14,7 +14,7 @@ pattern.video.repack: REPACK|PROPER pattern.subtitle.tags: forced|HI|SDH # additional release info patterns -pattern.video.format: DivX|Xvid|AVC|(x|h)[.]?(264|265)|HEVC|3ivx|PGS|MP[E]?G[45]?|MP[34]|(FLAC|AAC|AC3|DD|MA)(.?[2457][.]?[01])?|[26]ch|(Multi.)?DTS(.HD)?(.MA)?|TrueHD|Atmos|[M0]?(720|1080)[pi]|(?<=[-])(720|1080|2D|3D)|10.?bit|(24|30|60)FPS|Hi10[P]?|[a-z]{2,3}.(2[.]0|5[.]1)|(19|20)[0-9]+(.)S[0-9]+(?!(.)?E[0-9]+)|(?<=\\d+)v[0-4]|CD\\d+ +pattern.video.format: DivX|Xvid|AVC|(x|h)[.]?(264|265)|HEVC|3ivx|PGS|MP[E]?G[45]?|MP[34]|(FLAC|AAC|AC3|DD|MA).?[2457][.]?[01]|[26]ch|(Multi.)?DTS(.HD)?(.MA)?|FLAC|AAC|AC3|TrueHD|Atmos|[M0]?(720|1080)[pi]|(?<=[-])(720|1080|2D|3D)|10.?bit|(24|30|60)FPS|Hi10[P]?|[a-z]{2,3}.(2[.]0|5[.]1)|(19|20)[0-9]+(.)S[0-9]+(?!(.)?E[0-9]+)|(?<=\\d+)v[0-4]|CD\\d+ # known release group names url.release-groups: https://app.filebot.net/data/release-groups.txt.xz