Update ChineseNfoRegistry to use HTTP instead of HTTPS for API and image URLs
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 11s
Docker Build & Deploy / Deploy to Production (push) Successful in 4s

This commit is contained in:
孙诚
2025-04-03 12:58:52 +08:00
parent 60705f90e5
commit d41de63887

View File

@@ -32,7 +32,7 @@ public class ChineseNfoRegistry : Registry, IChineseNfoRegistry
}
_client = new HttpClient(httpClientHandler);
_client.BaseAddress = new Uri("https://api.themoviedb.org");
_client.BaseAddress = new Uri("http://api.themoviedb.org");
Schedule(() => Job(true, true)).ToRunEvery(1).Days();
}
@@ -190,7 +190,7 @@ public class ChineseNfoRegistry : Registry, IChineseNfoRegistry
if(!string.IsNullOrEmpty(poster))
{
poster = $"https://image.tmdb.org/t/p/w1280/{poster}";
poster = $"http://image.tmdb.org/t/p/w1280/{poster}";
// 下载并覆盖海报
var posterPath = tvShowFile.Replace("tvshow.nfo", $"poster.{poster.Split('.').Last()}");