Skip to content

Commit

Permalink
v3.4.2 修复重命名问题
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyPuppy514 committed Feb 18, 2024
1 parent a06b58e commit deb31f2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
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.2 2024-02-19

👻 Fix bug of rename

## v3.4.1 2023-10-13

🚀 Append other info while rename file
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.2 2024-02-19

👻 修复重命名问题

## v3.4.1 2023-10-13

🚀 文件重命名追加其他信息
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.1</version>
<version>3.4.2</version>
<name>JProxy</name>
<description>介于 Sonarr/Radarr 和 Jackett/Prowlarr 之间的代理,主要用于优化查询和提升识别率</description>
<!-- 依赖版本 -->
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/lckp/jproxy/task/SonarrRenameTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public synchronized void run() {
.format(newFileName, newFileNameFormat, tokenRuleMap)
.trim();
if (StringUtils.isBlank(newFileName)
|| !newFileName.matches("S\\d+E\\d+")) {
|| !newFileName.matches("S\\d+E\\d+") || !newFileName.matches("(\\b|\\s)E\\d+")) {
newFileName = oldFileName;
} else {
if (extension.matches(Common.SUBTITLE_EXTENSION_REGEX)) {
Expand Down

0 comments on commit deb31f2

Please sign in to comment.