mirror of
https://github.com/jellyfin/jellyfin-plugin-anidb.git
synced 2024-11-27 08:00:25 +00:00
Fix remaining ILogger
This commit is contained in:
parent
15966bfae0
commit
1b5c267643
@ -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)
|
||||
|
@ -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";
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user