更新 ChineseNfoRegistry 类,修正路径检查逻辑以使用最新路径;更新 JobTriggerController 类,移除 tmdbId 参数,改为使用路径参数。
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user