Fix missing using directive for ILogger extension methods
This commit is contained in:
@@ -29,6 +29,7 @@ using MediaBrowser.Model.Querying;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Jellyfin.Api.Controllers;
|
||||
|
||||
@@ -46,7 +47,7 @@ public class VideosController : BaseJellyfinApiController
|
||||
private readonly ITranscodeManager _transcodeManager;
|
||||
private readonly IHttpClientFactory _httpClientFactory;
|
||||
private readonly EncodingHelper _encodingHelper;
|
||||
private readonly Microsoft.Extensions.Logging.ILogger<VideosController> _logger;
|
||||
private readonly ILogger<VideosController> _logger;
|
||||
|
||||
private readonly TranscodingJobType _transcodingJobType = TranscodingJobType.Progressive;
|
||||
|
||||
@@ -73,7 +74,7 @@ public class VideosController : BaseJellyfinApiController
|
||||
ITranscodeManager transcodeManager,
|
||||
IHttpClientFactory httpClientFactory,
|
||||
EncodingHelper encodingHelper,
|
||||
Microsoft.Extensions.Logging.ILogger<VideosController> logger)
|
||||
ILogger<VideosController> logger)
|
||||
{
|
||||
_libraryManager = libraryManager;
|
||||
_userManager = userManager;
|
||||
|
||||
@@ -20,6 +20,7 @@ using MediaBrowser.Model.Dto;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Http.HttpResults;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Net.Http.Headers;
|
||||
|
||||
namespace Jellyfin.Api.Helpers;
|
||||
@@ -57,7 +58,7 @@ public static class StreamingHelpers
|
||||
ITranscodeManager transcodeManager,
|
||||
TranscodingJobType transcodingJobType,
|
||||
CancellationToken cancellationToken,
|
||||
Microsoft.Extensions.Logging.ILogger? logger = null)
|
||||
ILogger? logger = null)
|
||||
{
|
||||
var httpRequest = httpContext.Request;
|
||||
if (!string.IsNullOrWhiteSpace(streamingRequest.Params))
|
||||
@@ -375,7 +376,7 @@ public static class StreamingHelpers
|
||||
/// <param name="playSessionId">The play session id.</param>
|
||||
/// <param name="logger">Optional logger for debugging.</param>
|
||||
/// <returns>The complete file path, including the folder, for the transcoding file.</returns>
|
||||
private static string GetOutputFilePath(StreamState state, string outputFileExtension, IServerConfigurationManager serverConfigurationManager, string? deviceId, string? playSessionId, Microsoft.Extensions.Logging.ILogger? logger = null)
|
||||
private static string GetOutputFilePath(StreamState state, string outputFileExtension, IServerConfigurationManager serverConfigurationManager, string? deviceId, string? playSessionId, ILogger? logger = null)
|
||||
{
|
||||
var data = $"{state.MediaPath}-{state.UserAgent}-{deviceId!}-{playSessionId!}";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user