diff --git a/src/Service/Jobs/ChineseNfoRegistry.cs b/src/Service/Jobs/ChineseNfoRegistry.cs index 193396b..50139d4 100644 --- a/src/Service/Jobs/ChineseNfoRegistry.cs +++ b/src/Service/Jobs/ChineseNfoRegistry.cs @@ -88,8 +88,6 @@ public class ChineseNfoRegistry : Registry, IChineseNfoRegistry } await SetTvInfo(tvShowFile, tvXml, tmdbId); - - await Task.Delay(10000); // 获取 tvShowFile 的文件夹 var folderPath = Path.GetDirectoryName(tvShowFile); @@ -108,8 +106,6 @@ public class ChineseNfoRegistry : Registry, IChineseNfoRegistry foreach (var episodeFile in seasonFiles) { await SetEpisodeInfo(episodeFile, tmdbId); - - await Task.Delay(10000); } } @@ -431,6 +427,9 @@ public class ChineseNfoRegistry : Registry, IChineseNfoRegistry try { var response = await _client.GetAsync(requestUrl); + + await Task.Delay(10000); + if (!response.IsSuccessStatusCode) { Console.WriteLine($"{requestUrl} & {path} & {response.StatusCode}"); @@ -460,6 +459,9 @@ public class ChineseNfoRegistry : Registry, IChineseNfoRegistry try { var response = await _client.GetAsync(requestUrl); + + await Task.Delay(10000); + if (!response.IsSuccessStatusCode) { Console.WriteLine($"{requestUrl} & {path} & {response.StatusCode}");