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 deb31f2 commit 81f0f0e
Showing 1 changed file with 1 addition and 1 deletion.
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("(\\b|\\s)E\\d+")) {
|| !newFileName.matches("(S\\d+|\\b|\\s)E\\d+")) {
newFileName = oldFileName;
} else {
if (extension.matches(Common.SUBTITLE_EXTENSION_REGEX)) {
Expand Down

0 comments on commit 81f0f0e

Please sign in to comment.