Merge pull request #3118 from barronpm/fix-regressions
Fix regressions introduced by #3098
This commit is contained in:
commit
cb249cc171
|
@ -21,7 +21,7 @@ namespace MediaBrowser.Api
|
|||
public abstract class BaseApiService : IService, IRequiresRequest
|
||||
{
|
||||
public BaseApiService(
|
||||
ILogger logger,
|
||||
ILogger<BaseApiService> logger,
|
||||
IServerConfigurationManager serverConfigurationManager,
|
||||
IHttpResultFactory httpResultFactory)
|
||||
{
|
||||
|
@ -34,7 +34,7 @@ namespace MediaBrowser.Api
|
|||
/// Gets the logger.
|
||||
/// </summary>
|
||||
/// <value>The logger.</value>
|
||||
protected ILogger Logger { get; }
|
||||
protected ILogger<BaseApiService> Logger { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the server configuration manager.
|
||||
|
|
|
@ -319,11 +319,14 @@ namespace MediaBrowser.Api.Library
|
|||
private readonly ILocalizationManager _localization;
|
||||
private readonly ILibraryMonitor _libraryMonitor;
|
||||
|
||||
private readonly ILogger<MoviesService> _moviesServiceLogger;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="LibraryService" /> class.
|
||||
/// </summary>
|
||||
public LibraryService(
|
||||
ILogger<LibraryService> logger,
|
||||
ILogger<MoviesService> moviesServiceLogger,
|
||||
IServerConfigurationManager serverConfigurationManager,
|
||||
IHttpResultFactory httpResultFactory,
|
||||
IProviderManager providerManager,
|
||||
|
@ -344,6 +347,7 @@ namespace MediaBrowser.Api.Library
|
|||
_activityManager = activityManager;
|
||||
_localization = localization;
|
||||
_libraryMonitor = libraryMonitor;
|
||||
_moviesServiceLogger = moviesServiceLogger;
|
||||
}
|
||||
|
||||
private string[] GetRepresentativeItemTypes(string contentType)
|
||||
|
@ -543,7 +547,7 @@ namespace MediaBrowser.Api.Library
|
|||
if (item is Movie || (program != null && program.IsMovie) || item is Trailer)
|
||||
{
|
||||
return new MoviesService(
|
||||
Logger,
|
||||
_moviesServiceLogger,
|
||||
ServerConfigurationManager,
|
||||
ResultFactory,
|
||||
_userManager,
|
||||
|
|
|
@ -82,7 +82,7 @@ namespace MediaBrowser.Api.Movies
|
|||
/// Initializes a new instance of the <see cref="MoviesService" /> class.
|
||||
/// </summary>
|
||||
public MoviesService(
|
||||
ILogger logger,
|
||||
ILogger<MoviesService> logger,
|
||||
IServerConfigurationManager serverConfigurationManager,
|
||||
IHttpResultFactory httpResultFactory,
|
||||
IUserManager userManager,
|
||||
|
|
|
@ -81,7 +81,7 @@ namespace MediaBrowser.Api.Playback
|
|||
/// Initializes a new instance of the <see cref="BaseStreamingService" /> class.
|
||||
/// </summary>
|
||||
protected BaseStreamingService(
|
||||
ILogger logger,
|
||||
ILogger<BaseStreamingService> logger,
|
||||
IServerConfigurationManager serverConfigurationManager,
|
||||
IHttpResultFactory httpResultFactory,
|
||||
IUserManager userManager,
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace MediaBrowser.Api.Playback.Hls
|
|||
public abstract class BaseHlsService : BaseStreamingService
|
||||
{
|
||||
public BaseHlsService(
|
||||
ILogger logger,
|
||||
ILogger<BaseHlsService> logger,
|
||||
IServerConfigurationManager serverConfigurationManager,
|
||||
IHttpResultFactory httpResultFactory,
|
||||
IUserManager userManager,
|
||||
|
|
|
@ -94,7 +94,7 @@ namespace MediaBrowser.Api.Playback.Hls
|
|||
public class DynamicHlsService : BaseHlsService
|
||||
{
|
||||
public DynamicHlsService(
|
||||
ILogger logger,
|
||||
ILogger<DynamicHlsService> logger,
|
||||
IServerConfigurationManager serverConfigurationManager,
|
||||
IHttpResultFactory httpResultFactory,
|
||||
IUserManager userManager,
|
||||
|
|
|
@ -79,7 +79,7 @@ namespace MediaBrowser.Api.Playback
|
|||
private readonly IAuthorizationContext _authContext;
|
||||
|
||||
public MediaInfoService(
|
||||
ILogger logger,
|
||||
ILogger<MediaInfoService> logger,
|
||||
IServerConfigurationManager serverConfigurationManager,
|
||||
IHttpResultFactory httpResultFactory,
|
||||
IMediaSourceManager mediaSourceManager,
|
||||
|
|
|
@ -33,7 +33,7 @@ namespace MediaBrowser.Api.Playback.Progressive
|
|||
public class AudioService : BaseProgressiveStreamingService
|
||||
{
|
||||
public AudioService(
|
||||
ILogger logger,
|
||||
ILogger<AudioService> logger,
|
||||
IServerConfigurationManager serverConfigurationManager,
|
||||
IHttpResultFactory httpResultFactory,
|
||||
IHttpClient httpClient,
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace MediaBrowser.Api.Playback.Progressive
|
|||
protected IHttpClient HttpClient { get; private set; }
|
||||
|
||||
public BaseProgressiveStreamingService(
|
||||
ILogger logger,
|
||||
ILogger<BaseProgressiveStreamingService> logger,
|
||||
IServerConfigurationManager serverConfigurationManager,
|
||||
IHttpResultFactory httpResultFactory,
|
||||
IHttpClient httpClient,
|
||||
|
|
|
@ -75,9 +75,11 @@ namespace MediaBrowser.Api.Playback
|
|||
public class UniversalAudioService : BaseApiService
|
||||
{
|
||||
private readonly EncodingHelper _encodingHelper;
|
||||
private readonly ILoggerFactory _loggerFactory;
|
||||
|
||||
public UniversalAudioService(
|
||||
ILogger<UniversalAudioService> logger,
|
||||
ILoggerFactory loggerFactory,
|
||||
IServerConfigurationManager serverConfigurationManager,
|
||||
IHttpResultFactory httpResultFactory,
|
||||
IHttpClient httpClient,
|
||||
|
@ -108,6 +110,7 @@ namespace MediaBrowser.Api.Playback
|
|||
AuthorizationContext = authorizationContext;
|
||||
NetworkManager = networkManager;
|
||||
_encodingHelper = encodingHelper;
|
||||
_loggerFactory = loggerFactory;
|
||||
}
|
||||
|
||||
protected IHttpClient HttpClient { get; private set; }
|
||||
|
@ -233,7 +236,7 @@ namespace MediaBrowser.Api.Playback
|
|||
AuthorizationContext.GetAuthorizationInfo(Request).DeviceId = request.DeviceId;
|
||||
|
||||
var mediaInfoService = new MediaInfoService(
|
||||
Logger,
|
||||
_loggerFactory.CreateLogger<MediaInfoService>(),
|
||||
ServerConfigurationManager,
|
||||
ResultFactory,
|
||||
MediaSourceManager,
|
||||
|
@ -277,7 +280,7 @@ namespace MediaBrowser.Api.Playback
|
|||
if (!isStatic && string.Equals(mediaSource.TranscodingSubProtocol, "hls", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
var service = new DynamicHlsService(
|
||||
Logger,
|
||||
_loggerFactory.CreateLogger<DynamicHlsService>(),
|
||||
ServerConfigurationManager,
|
||||
ResultFactory,
|
||||
UserManager,
|
||||
|
@ -331,7 +334,7 @@ namespace MediaBrowser.Api.Playback
|
|||
else
|
||||
{
|
||||
var service = new AudioService(
|
||||
Logger,
|
||||
_loggerFactory.CreateLogger<AudioService>(),
|
||||
ServerConfigurationManager,
|
||||
ResultFactory,
|
||||
HttpClient,
|
||||
|
|
|
@ -51,7 +51,7 @@ namespace MediaBrowser.Api.UserLibrary
|
|||
public class ArtistsService : BaseItemsByNameService<MusicArtist>
|
||||
{
|
||||
public ArtistsService(
|
||||
ILogger<GenresService> logger,
|
||||
ILogger<ArtistsService> logger,
|
||||
IServerConfigurationManager serverConfigurationManager,
|
||||
IHttpResultFactory httpResultFactory,
|
||||
IUserManager userManager,
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace MediaBrowser.Api.UserLibrary
|
|||
/// <param name="userDataRepository">The user data repository.</param>
|
||||
/// <param name="dtoService">The dto service.</param>
|
||||
protected BaseItemsByNameService(
|
||||
ILogger logger,
|
||||
ILogger<BaseItemsByNameService<TItemType>> logger,
|
||||
IServerConfigurationManager serverConfigurationManager,
|
||||
IHttpResultFactory httpResultFactory,
|
||||
IUserManager userManager,
|
||||
|
|
Loading…
Reference in New Issue
Block a user