From 93450086a0de9eab86b8d1ce9dfb924754bfc462 Mon Sep 17 00:00:00 2001 From: aiqinxuancai Date: Mon, 20 May 2024 14:20:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Aria2Fast/Utils/MatchUtils.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Aria2Fast/Utils/MatchUtils.cs b/Aria2Fast/Utils/MatchUtils.cs index 8dcc53f..c1cdbbd 100644 --- a/Aria2Fast/Utils/MatchUtils.cs +++ b/Aria2Fast/Utils/MatchUtils.cs @@ -33,12 +33,11 @@ public static int GetSeasonFromTitle(string title) { Match match = regex.Match(title); string seasonStr = match.Groups[1].Value; - // check if the match value is Arabic numeral + if (int.TryParse(seasonStr, out int seasonNum)) { return seasonNum; } - // Match Chinese digit else { switch (seasonStr)