更新 ChineseNfoRegistry 类,修正路径检查逻辑以使用最新路径;更新 JobTriggerController 类,移除 tmdbId 参数,改为使用路径参数。
Some checks failed
Docker Build & Deploy / Build Docker Image (push) Failing after 20s
Docker Build & Deploy / Deploy to Production (push) Has been skipped

This commit is contained in:
孙诚
2025-04-21 16:20:03 +08:00
parent 8ceb88846c
commit 694db295a9
2 changed files with 3 additions and 2 deletions

View File

@@ -101,7 +101,9 @@ public class ChineseNfoRegistry : Registry, IChineseNfoRegistry
{ {
if (!string.IsNullOrEmpty(requestPath)) if (!string.IsNullOrEmpty(requestPath))
{ {
if (!tv.Contains(requestPath)) var latestPath = Path.GetFileName(requestPath) ?? string.Empty;
if (!tv.Contains(latestPath))
{ {
_logger.LogInformation("ChineseNfoRegistry.Job() tv is not contains path"); _logger.LogInformation("ChineseNfoRegistry.Job() tv is not contains path");
continue; continue;

View File

@@ -123,7 +123,6 @@ public class JobTriggerController : BaseController
return "OK"; return "OK";
} }
var tmdbId = json?["series"]?["tmdbId"]?.ToString();
var seasonNumber = json?["episodes"]?[0]?["seasonNumber"]?.ToString(); var seasonNumber = json?["episodes"]?[0]?["seasonNumber"]?.ToString();
var episodeNumber = json?["episodes"]?[0]?["episodeNumber"]?.ToString(); var episodeNumber = json?["episodes"]?[0]?["episodeNumber"]?.ToString();
var path = json?["series"]?["path"]?.ToString(); var path = json?["series"]?["path"]?.ToString();