优化季节 NFO 文件处理逻辑,修复季号提取中的字符串分割问题,并增加日志记录以便于调试。
This commit is contained in:
@@ -123,7 +123,7 @@ public class ChineseNfoRegistry : Registry, IChineseNfoRegistry
|
||||
}
|
||||
|
||||
var sseasons = Directory.GetDirectories(Path.GetDirectoryName(tv) ?? string.Empty, "Season *", SearchOption.AllDirectories);
|
||||
var sseasonsNumbers = sseasons.Select(x => x.Split("Season ", StringSplitOptions.None)[1]).Select(int.Parse).ToList();
|
||||
var sseasonsNumbers = sseasons.Select(x => x.Split("Season ")[1]).Select(int.Parse).ToList();
|
||||
|
||||
foreach (var seasonNumber in sseasonsNumbers)
|
||||
{
|
||||
@@ -143,6 +143,8 @@ public class ChineseNfoRegistry : Registry, IChineseNfoRegistry
|
||||
{
|
||||
ctn.episodeNfoPath = episode;
|
||||
|
||||
_logger.LogInformation("ctn.episodeNfoPath: " + ctn.episodeNfoPath);
|
||||
|
||||
await HandleEpisode();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user