diff --git a/changelog.en_US.md b/changelog.en_US.md index af013f3..b96ebc4 100644 --- a/changelog.en_US.md +++ b/changelog.en_US.md @@ -3,6 +3,10 @@ # Change Logs +## v3.4.3 2024-02-20 + +🚀 Optimize radarr title matching logic + ## v3.4.2 2024-02-19 👻 Fix bug of rename diff --git a/changelog.md b/changelog.md index 3bc306e..834a691 100644 --- a/changelog.md +++ b/changelog.md @@ -3,6 +3,10 @@ # 变更日志 +## v3.4.3 2024-02-20 + +🚀 优化 Radarr 标题匹配逻辑 + ## v3.4.2 2024-02-19 👻 修复重命名问题 diff --git a/pom.xml b/pom.xml index 342061e..bb27d55 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ com.lckp jproxy - 3.4.2 + 3.4.3 JProxy 介于 Sonarr/Radarr 和 Jackett/Prowlarr 之间的代理,主要用于优化查询和提升识别率 diff --git a/src/main/java/com/lckp/jproxy/service/impl/RadarrTitleServiceImpl.java b/src/main/java/com/lckp/jproxy/service/impl/RadarrTitleServiceImpl.java index 3e33d95..81afbf0 100644 --- a/src/main/java/com/lckp/jproxy/service/impl/RadarrTitleServiceImpl.java +++ b/src/main/java/com/lckp/jproxy/service/impl/RadarrTitleServiceImpl.java @@ -227,6 +227,8 @@ public String formatTitle(String text, String format, String cleanTitleRegex, "[a-zA-Z]+" + FormatUtil.PLACEHOLDER + cleanTitle); String suffixRegex = titleRule.getRegex().replace("{" + Token.CLEAN_TITLE + "}", cleanTitle + FormatUtil.PLACEHOLDER + "[a-zA-Z]+"); + // 排除特殊英文单词 + cleanText = cleanText.replaceAll("( aka )", FormatUtil.PLACEHOLDER_SEPARATOR); if (cleanText.matches(prefixRegex) || cleanText.matches(suffixRegex)) { log.debug("英文标题前或后有英文单词:{},不匹配:{}", cleanText, cleanTitle); continue;