Add file attribute modification for read/write permissions in ChineseNfoRegistry
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 12s
Docker Build & Deploy / Deploy to Production (push) Successful in 4s

This commit is contained in:
孙诚
2025-03-19 14:31:19 +08:00
parent adb69f6ef4
commit 1b837f6953

View File

@@ -230,6 +230,8 @@ public class ChineseNfoRegistry : Registry, IChineseNfoRegistry
try
{
// 尝试放开文件的读写权限
File.SetAttributes(seasonFile, FileAttributes.Normal);
episodeXml.Save(seasonFile);
}
catch (Exception e)