Fix remaining ILogger

This commit is contained in:
crobibero 2020-07-18 18:30:39 -06:00
parent 15966bfae0
commit 1b5c267643
4 changed files with 9 additions and 9 deletions

View File

@ -13,14 +13,14 @@ namespace Jellyfin.Plugin.Anime.Providers.AniDB.Metadata
public class AniDbMovieProvider : IRemoteMetadataProvider<Movie, MovieInfo>
{
private readonly AniDbSeriesProvider _seriesProvider;
private readonly ILogger _log;
private readonly ILogger<AniDbMovieProvider> _logger;
public string Name => "AniDB";
public AniDbMovieProvider(IApplicationPaths appPaths, IHttpClient httpClient, ILoggerFactory loggerFactory)
public AniDbMovieProvider(IApplicationPaths appPaths, IHttpClient httpClient, ILogger<AniDbMovieProvider> logger)
{
_seriesProvider = new AniDbSeriesProvider(appPaths, httpClient);
_log = loggerFactory.CreateLogger("AniDB");
_logger = logger;
}
public async Task<MetadataResult<Movie>> GetMetadata(MovieInfo info, CancellationToken cancellationToken)

View File

@ -20,7 +20,7 @@ namespace Jellyfin.Plugin.Anime.Providers.AniList
{
private readonly IHttpClient _httpClient;
private readonly IApplicationPaths _paths;
private readonly ILogger _log;
private readonly ILogger<AniListSeriesProvider> _log;
private readonly AniListApi _aniListApi;
public int Order => -2;
public string Name => "AniList";

View File

@ -18,13 +18,13 @@ namespace Jellyfin.Plugin.Anime.Providers.AniSearch
{
private readonly IHttpClient _httpClient;
private readonly IApplicationPaths _paths;
private readonly ILogger _log;
private readonly ILogger<AniSearchSeriesProvider> _log;
public int Order => -3;
public string Name => "AniSearch";
public AniSearchSeriesProvider(IApplicationPaths appPaths, IHttpClient httpClient, ILoggerFactory loggerFactory)
public AniSearchSeriesProvider(IApplicationPaths appPaths, IHttpClient httpClient, ILogger<AniSearchSeriesProvider> logger)
{
_log = loggerFactory.CreateLogger("AniSearch");
_log = logger;
_httpClient = httpClient;
_paths = appPaths;
}

View File

@ -13,9 +13,9 @@ namespace Jellyfin.Plugin.Anime.Providers
{
internal class Equals_check
{
public readonly ILogger _logger;
public readonly ILogger<Equals_check> _logger;
public Equals_check(ILogger logger)
public Equals_check(ILogger<Equals_check> logger)
{
_logger = logger;
}