From 81f0f0e5adee97414585775023263edc1310dd95 Mon Sep 17 00:00:00 2001 From: LuckyPuppy514 <122154133@qq.com> Date: Mon, 19 Feb 2024 00:20:50 +0800 Subject: [PATCH] =?UTF-8?q?v3.4.2=20=E4=BF=AE=E5=A4=8D=E9=87=8D=E5=91=BD?= =?UTF-8?q?=E5=90=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/lckp/jproxy/task/SonarrRenameTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/lckp/jproxy/task/SonarrRenameTask.java b/src/main/java/com/lckp/jproxy/task/SonarrRenameTask.java index df9383d..df86fd7 100644 --- a/src/main/java/com/lckp/jproxy/task/SonarrRenameTask.java +++ b/src/main/java/com/lckp/jproxy/task/SonarrRenameTask.java @@ -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)) {