Skip to content

Commit

Permalink
v3.4.3 优化 Radarr 标题匹配逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyPuppy514 committed Feb 20, 2024
1 parent 81f0f0e commit 03ea76b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog.en_US.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

# 变更日志

## v3.4.3 2024-02-20

🚀 优化 Radarr 标题匹配逻辑

## v3.4.2 2024-02-19

👻 修复重命名问题
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<!-- 项目信息 -->
<groupId>com.lckp</groupId>
<artifactId>jproxy</artifactId>
<version>3.4.2</version>
<version>3.4.3</version>
<name>JProxy</name>
<description>介于 Sonarr/Radarr 和 Jackett/Prowlarr 之间的代理,主要用于优化查询和提升识别率</description>
<!-- 依赖版本 -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 03ea76b

Please sign in to comment.