更新 ChineseNfoRegistry 类中的 JobExecute 方法,增加可选参数以支持 TMDB ID、季号和集号;改进错误处理,使用日志记录替代控制台输出。
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 15s
Docker Build & Deploy / Deploy to Production (push) Successful in 5s

This commit is contained in:
孙诚
2025-04-17 18:46:41 +08:00
parent ec3434da82
commit 3288df0f25
2 changed files with 23 additions and 15 deletions

View File

@@ -1,4 +1,5 @@
using System.Text.Json.Nodes;
using Core;
using Interface.Jobs;
using Microsoft.AspNetCore.Mvc;
@@ -118,6 +119,10 @@ public class JobTriggerController : BaseController
var tmdbId = json?["series"]?["tmdbId"]?.ToString();
var seasonNumber = json?["episodes"]?[0]?["seasonNumber"]?.ToString();
var episodeNumber = json?["episodes"]?[0]?["episodeNumber"]?.ToString();
var path = json?["series"]?["path"]?.ToString();
var eventType = json?["eventType"]?.ToString();
await WxNotify.SendCommonAsync($"SonarrChangedConvertChineseNfo: {tmdbId}, {seasonNumber}, {episodeNumber}, {path}, {eventType}");
_chineseNfoRegistry.Job(tmdbId: tmdbId, seasonNumber: seasonNumber, episodeNumber: episodeNumber);