mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 09:59:06 -07:00
Fix logging args and add ilogger with categoryname
This commit is contained in:
parent
bca7a26ffd
commit
4a5c526ccc
@ -24,7 +24,7 @@ namespace MediaBrowser.Providers.People
|
||||
private readonly ILibraryManager _libraryManager;
|
||||
private readonly TvDbClientManager _tvDbClientManager;
|
||||
|
||||
public TvdbPersonImageProvider(ILibraryManager libraryManager, IHttpClient httpClient, ILogger logger, TvDbClientManager tvDbClientManager)
|
||||
public TvdbPersonImageProvider(ILibraryManager libraryManager, IHttpClient httpClient, ILogger<TvdbPersonImageProvider> logger, TvDbClientManager tvDbClientManager)
|
||||
{
|
||||
_libraryManager = libraryManager;
|
||||
_httpClient = httpClient;
|
||||
|
@ -20,7 +20,7 @@ namespace MediaBrowser.Providers.TV.TheTVDB
|
||||
private readonly ILogger _logger;
|
||||
private readonly TvDbClientManager _tvDbClientManager;
|
||||
|
||||
public TvdbEpisodeImageProvider(IHttpClient httpClient, ILogger logger, TvDbClientManager tvDbClientManager)
|
||||
public TvdbEpisodeImageProvider(IHttpClient httpClient, ILogger<TvdbEpisodeImageProvider> logger, TvDbClientManager tvDbClientManager)
|
||||
{
|
||||
_httpClient = httpClient;
|
||||
_logger = logger;
|
||||
@ -67,7 +67,7 @@ namespace MediaBrowser.Providers.TV.TheTVDB
|
||||
if (string.IsNullOrEmpty(episodeTvdbId))
|
||||
{
|
||||
_logger.LogError("Episode {SeasonNumber}x{EpisodeNumber} not found for series {SeriesTvdbId}",
|
||||
episodeInfo.ParentIndexNumber, episodeInfo.IndexNumber);
|
||||
episodeInfo.ParentIndexNumber, episodeInfo.IndexNumber, series.GetProviderId(MetadataProviders.Tvdb));
|
||||
return imageResult;
|
||||
}
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ namespace MediaBrowser.Providers.TV.TheTVDB
|
||||
private readonly ILogger _logger;
|
||||
private readonly TvDbClientManager _tvDbClientManager;
|
||||
|
||||
public TvdbEpisodeProvider(IHttpClient httpClient, ILogger logger, TvDbClientManager tvDbClientManager)
|
||||
public TvdbEpisodeProvider(IHttpClient httpClient, ILogger<TvdbEpisodeProvider> logger, TvDbClientManager tvDbClientManager)
|
||||
{
|
||||
_httpClient = httpClient;
|
||||
_logger = logger;
|
||||
@ -48,11 +48,13 @@ namespace MediaBrowser.Providers.TV.TheTVDB
|
||||
var episodeTvdbId = searchInfo.GetProviderId(MetadataProviders.Tvdb);
|
||||
if (string.IsNullOrEmpty(episodeTvdbId))
|
||||
{
|
||||
searchInfo.SeriesProviderIds.TryGetValue(MetadataProviders.Tvdb.ToString(),
|
||||
out var seriesTvdbId);
|
||||
episodeTvdbId = await _tvDbClientManager.GetEpisodeTvdbId(searchInfo, searchInfo.MetadataLanguage, cancellationToken);
|
||||
if (string.IsNullOrEmpty(episodeTvdbId))
|
||||
{
|
||||
_logger.LogError("Episode {SeasonNumber}x{EpisodeNumber} not found for series {SeriesTvdbId}",
|
||||
searchInfo.ParentIndexNumber, searchInfo.IndexNumber);
|
||||
searchInfo.ParentIndexNumber, searchInfo.IndexNumber, seriesTvdbId);
|
||||
return list;
|
||||
}
|
||||
}
|
||||
@ -124,7 +126,7 @@ namespace MediaBrowser.Providers.TV.TheTVDB
|
||||
}
|
||||
else
|
||||
{
|
||||
_logger.LogDebug("No series identity found for {0}", searchInfo.Name);
|
||||
_logger.LogDebug("No series identity found for {EpisodeName}", searchInfo.Name);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
@ -22,7 +22,7 @@ namespace MediaBrowser.Providers.TV.TheTVDB
|
||||
private readonly ILogger _logger;
|
||||
private readonly TvDbClientManager _tvDbClientManager;
|
||||
|
||||
public TvdbSeasonImageProvider(IHttpClient httpClient, ILogger logger, TvDbClientManager tvDbClientManager)
|
||||
public TvdbSeasonImageProvider(IHttpClient httpClient, ILogger<TvdbSeasonImageProvider> logger, TvDbClientManager tvDbClientManager)
|
||||
{
|
||||
_httpClient = httpClient;
|
||||
_logger = logger;
|
||||
|
@ -22,7 +22,7 @@ namespace MediaBrowser.Providers.TV.TheTVDB
|
||||
private readonly ILogger _logger;
|
||||
private readonly TvDbClientManager _tvDbClientManager;
|
||||
|
||||
public TvdbSeriesImageProvider(IHttpClient httpClient, ILogger logger, TvDbClientManager tvDbClientManager)
|
||||
public TvdbSeriesImageProvider(IHttpClient httpClient, ILogger<TvdbSeriesImageProvider> logger, TvDbClientManager tvDbClientManager)
|
||||
{
|
||||
_httpClient = httpClient;
|
||||
_logger = logger;
|
||||
|
@ -29,7 +29,7 @@ namespace MediaBrowser.Providers.TV.TheTVDB
|
||||
private readonly ILocalizationManager _localizationManager;
|
||||
private readonly TvDbClientManager _tvDbClientManager;
|
||||
|
||||
public TvdbSeriesProvider(IHttpClient httpClient, ILogger logger, ILibraryManager libraryManager, ILocalizationManager localizationManager, TvDbClientManager tvDbClientManager)
|
||||
public TvdbSeriesProvider(IHttpClient httpClient, ILogger<TvdbSeriesProvider> logger, ILibraryManager libraryManager, ILocalizationManager localizationManager, TvDbClientManager tvDbClientManager)
|
||||
{
|
||||
_httpClient = httpClient;
|
||||
_logger = logger;
|
||||
|
Loading…
Reference in New Issue
Block a user