From 1b837f695391aa5624ba08e5f42a4c980bed62aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=AF=9A?= Date: Wed, 19 Mar 2025 14:31:19 +0800 Subject: [PATCH] Add file attribute modification for read/write permissions in ChineseNfoRegistry --- src/Service/Jobs/ChineseNfoRegistry.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Service/Jobs/ChineseNfoRegistry.cs b/src/Service/Jobs/ChineseNfoRegistry.cs index 675c5fa..60677d9 100644 --- a/src/Service/Jobs/ChineseNfoRegistry.cs +++ b/src/Service/Jobs/ChineseNfoRegistry.cs @@ -230,6 +230,8 @@ public class ChineseNfoRegistry : Registry, IChineseNfoRegistry try { + // 尝试放开文件的读写权限 + File.SetAttributes(seasonFile, FileAttributes.Normal); episodeXml.Save(seasonFile); } catch (Exception e)