Migrate to file-scoped namespaces

This commit is contained in:
Shadowghost 2023-01-31 12:18:10 +01:00
parent 58b3945805
commit f5f890e685
163 changed files with 23939 additions and 24102 deletions

View File

@ -2,8 +2,8 @@
using System; using System;
namespace Jellyfin.Api.Attributes namespace Jellyfin.Api.Attributes;
{
/// <summary> /// <summary>
/// Internal produces image attribute. /// Internal produces image attribute.
/// </summary> /// </summary>
@ -27,4 +27,3 @@ namespace Jellyfin.Api.Attributes
/// <returns>the configured content types.</returns> /// <returns>the configured content types.</returns>
public string[] ContentTypes => _contentTypes; public string[] ContentTypes => _contentTypes;
} }
}

View File

@ -1,5 +1,5 @@
namespace Jellyfin.Api.Attributes namespace Jellyfin.Api.Attributes;
{
/// <summary> /// <summary>
/// Produces file attribute of "image/*". /// Produces file attribute of "image/*".
/// </summary> /// </summary>
@ -15,4 +15,3 @@
{ {
} }
} }
}

View File

@ -2,8 +2,8 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc.Routing; using Microsoft.AspNetCore.Mvc.Routing;
namespace Jellyfin.Api.Attributes namespace Jellyfin.Api.Attributes;
{
/// <summary> /// <summary>
/// Identifies an action that supports the HTTP GET method. /// Identifies an action that supports the HTTP GET method.
/// </summary> /// </summary>
@ -27,4 +27,3 @@ namespace Jellyfin.Api.Attributes
: base(_supportedMethods, template) : base(_supportedMethods, template)
=> ArgumentNullException.ThrowIfNull(template); => ArgumentNullException.ThrowIfNull(template);
} }
}

View File

@ -2,8 +2,8 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc.Routing; using Microsoft.AspNetCore.Mvc.Routing;
namespace Jellyfin.Api.Attributes namespace Jellyfin.Api.Attributes;
{
/// <summary> /// <summary>
/// Identifies an action that supports the HTTP GET method. /// Identifies an action that supports the HTTP GET method.
/// </summary> /// </summary>
@ -27,4 +27,3 @@ namespace Jellyfin.Api.Attributes
: base(_supportedMethods, template) : base(_supportedMethods, template)
=> ArgumentNullException.ThrowIfNull(template); => ArgumentNullException.ThrowIfNull(template);
} }
}

View File

@ -1,7 +1,7 @@
using System; using System;
namespace Jellyfin.Api.Attributes namespace Jellyfin.Api.Attributes;
{
/// <summary> /// <summary>
/// Attribute to mark a parameter as obsolete. /// Attribute to mark a parameter as obsolete.
/// </summary> /// </summary>
@ -9,4 +9,3 @@ namespace Jellyfin.Api.Attributes
public sealed class ParameterObsoleteAttribute : Attribute public sealed class ParameterObsoleteAttribute : Attribute
{ {
} }
}

View File

@ -1,5 +1,5 @@
namespace Jellyfin.Api.Attributes namespace Jellyfin.Api.Attributes;
{
/// <summary> /// <summary>
/// Produces file attribute of "image/*". /// Produces file attribute of "image/*".
/// </summary> /// </summary>
@ -15,4 +15,3 @@
{ {
} }
} }
}

View File

@ -2,8 +2,8 @@
using System; using System;
namespace Jellyfin.Api.Attributes namespace Jellyfin.Api.Attributes;
{
/// <summary> /// <summary>
/// Internal produces image attribute. /// Internal produces image attribute.
/// </summary> /// </summary>
@ -27,4 +27,3 @@ namespace Jellyfin.Api.Attributes
/// <returns>the configured content types.</returns> /// <returns>the configured content types.</returns>
public string[] ContentTypes => _contentTypes; public string[] ContentTypes => _contentTypes;
} }
}

View File

@ -1,5 +1,5 @@
namespace Jellyfin.Api.Attributes namespace Jellyfin.Api.Attributes;
{
/// <summary> /// <summary>
/// Produces file attribute of "image/*". /// Produces file attribute of "image/*".
/// </summary> /// </summary>
@ -15,4 +15,3 @@
{ {
} }
} }
}

View File

@ -1,5 +1,5 @@
namespace Jellyfin.Api.Attributes namespace Jellyfin.Api.Attributes;
{
/// <summary> /// <summary>
/// Produces file attribute of "image/*". /// Produces file attribute of "image/*".
/// </summary> /// </summary>
@ -15,4 +15,3 @@
{ {
} }
} }
}

View File

@ -1,5 +1,5 @@
namespace Jellyfin.Api.Attributes namespace Jellyfin.Api.Attributes;
{
/// <summary> /// <summary>
/// Produces file attribute of "video/*". /// Produces file attribute of "video/*".
/// </summary> /// </summary>
@ -15,4 +15,3 @@
{ {
} }
} }
}

View File

@ -4,8 +4,8 @@ using Jellyfin.Api.Results;
using Jellyfin.Extensions.Json; using Jellyfin.Extensions.Json;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api namespace Jellyfin.Api;
{
/// <summary> /// <summary>
/// Base api controller for the API setting a default route. /// Base api controller for the API setting a default route.
/// </summary> /// </summary>
@ -35,4 +35,3 @@ namespace Jellyfin.Api
protected ActionResult<T> Ok<T>(T value) protected ActionResult<T> Ok<T>(T value)
=> new OkResult<T>(value); => new OkResult<T>(value);
} }
}

View File

@ -1,5 +1,5 @@
namespace Jellyfin.Api.Constants namespace Jellyfin.Api.Constants;
{
/// <summary> /// <summary>
/// Authentication schemes for user authentication in the API. /// Authentication schemes for user authentication in the API.
/// </summary> /// </summary>
@ -10,4 +10,3 @@ namespace Jellyfin.Api.Constants
/// </summary> /// </summary>
public const string CustomAuthentication = "CustomAuthentication"; public const string CustomAuthentication = "CustomAuthentication";
} }
}

View File

@ -1,5 +1,5 @@
namespace Jellyfin.Api.Constants namespace Jellyfin.Api.Constants;
{
/// <summary> /// <summary>
/// Internal claim types for authorization. /// Internal claim types for authorization.
/// </summary> /// </summary>
@ -40,4 +40,3 @@
/// </summary> /// </summary>
public const string IsApiKey = "Jellyfin-IsApiKey"; public const string IsApiKey = "Jellyfin-IsApiKey";
} }
}

View File

@ -1,5 +1,5 @@
namespace Jellyfin.Api.Constants namespace Jellyfin.Api.Constants;
{
/// <summary> /// <summary>
/// Policies for the API authorization. /// Policies for the API authorization.
/// </summary> /// </summary>
@ -75,4 +75,3 @@ namespace Jellyfin.Api.Constants
/// </summary> /// </summary>
public const string SyncPlayIsInGroup = "SyncPlayIsInGroup"; public const string SyncPlayIsInGroup = "SyncPlayIsInGroup";
} }
}

View File

@ -1,5 +1,5 @@
namespace Jellyfin.Api.Constants namespace Jellyfin.Api.Constants;
{
/// <summary> /// <summary>
/// Constants for user roles used in the authentication and authorization for the API. /// Constants for user roles used in the authentication and authorization for the API.
/// </summary> /// </summary>
@ -20,4 +20,3 @@ namespace Jellyfin.Api.Constants
/// </summary> /// </summary>
public const string Administrator = "Administrator"; public const string Administrator = "Administrator";
} }
}

View File

@ -8,8 +8,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Activity log controller. /// Activity log controller.
/// </summary> /// </summary>
@ -54,4 +54,3 @@ namespace Jellyfin.Api.Controllers
}).ConfigureAwait(false); }).ConfigureAwait(false);
} }
} }
}

View File

@ -7,8 +7,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Authentication controller. /// Authentication controller.
/// </summary> /// </summary>
@ -73,4 +73,3 @@ namespace Jellyfin.Api.Controllers
return NoContent(); return NoContent();
} }
} }
}

View File

@ -17,8 +17,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// The artists controller. /// The artists controller.
/// </summary> /// </summary>
@ -477,4 +477,3 @@ namespace Jellyfin.Api.Controllers
return _dtoService.GetBaseItemDto(item, dtoOptions); return _dtoService.GetBaseItemDto(item, dtoOptions);
} }
} }
}

View File

@ -10,8 +10,8 @@ using MediaBrowser.Model.Dlna;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// The audio controller. /// The audio controller.
/// </summary> /// </summary>
@ -361,4 +361,3 @@ namespace Jellyfin.Api.Controllers
return await _audioHelper.GetAudioStream(_transcodingJobType, streamingRequest).ConfigureAwait(false); return await _audioHelper.GetAudioStream(_transcodingJobType, streamingRequest).ConfigureAwait(false);
} }
} }
}

View File

@ -4,8 +4,8 @@ using MediaBrowser.Model.Branding;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Branding controller. /// Branding controller.
/// </summary> /// </summary>
@ -54,4 +54,3 @@ namespace Jellyfin.Api.Controllers
return options.CustomCss ?? string.Empty; return options.CustomCss ?? string.Empty;
} }
} }
}

View File

@ -18,8 +18,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Channels Controller. /// Channels Controller.
/// </summary> /// </summary>
@ -248,4 +248,3 @@ namespace Jellyfin.Api.Controllers
return await _channelManager.GetLatestChannelItems(query, CancellationToken.None).ConfigureAwait(false); return await _channelManager.GetLatestChannelItems(query, CancellationToken.None).ConfigureAwait(false);
} }
} }
}

View File

@ -11,8 +11,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Client log controller. /// Client log controller.
/// </summary> /// </summary>
@ -78,4 +78,3 @@ namespace Jellyfin.Api.Controllers
return (clientName, clientVersion); return (clientName, clientVersion);
} }
} }
}

View File

@ -11,8 +11,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// The collection controller. /// The collection controller.
/// </summary> /// </summary>
@ -108,4 +108,3 @@ namespace Jellyfin.Api.Controllers
return NoContent(); return NoContent();
} }
} }
}

View File

@ -13,8 +13,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Configuration Controller. /// Configuration Controller.
/// </summary> /// </summary>
@ -133,4 +133,3 @@ namespace Jellyfin.Api.Controllers
return NoContent(); return NoContent();
} }
} }
}

View File

@ -14,8 +14,8 @@ using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// The dashboard controller. /// The dashboard controller.
/// </summary> /// </summary>
@ -113,4 +113,3 @@ namespace Jellyfin.Api.Controllers
return _pluginManager.Plugins.SelectMany(GetPluginPages); return _pluginManager.Plugins.SelectMany(GetPluginPages);
} }
} }
}

View File

@ -13,8 +13,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Devices Controller. /// Devices Controller.
/// </summary> /// </summary>
@ -138,4 +138,3 @@ namespace Jellyfin.Api.Controllers
return NoContent(); return NoContent();
} }
} }
}

View File

@ -14,8 +14,8 @@ using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Display Preferences Controller. /// Display Preferences Controller.
/// </summary> /// </summary>
@ -211,4 +211,3 @@ namespace Jellyfin.Api.Controllers
return NoContent(); return NoContent();
} }
} }
}

View File

@ -7,8 +7,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Dlna Controller. /// Dlna Controller.
/// </summary> /// </summary>
@ -130,4 +130,3 @@ namespace Jellyfin.Api.Controllers
return NoContent(); return NoContent();
} }
} }
}

View File

@ -14,8 +14,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Dlna Server Controller. /// Dlna Server Controller.
/// </summary> /// </summary>
@ -321,4 +321,3 @@ namespace Jellyfin.Api.Controllers
return dlnaEventManager.CancelEventSubscription(subscriptionId); return dlnaEventManager.CancelEventSubscription(subscriptionId);
} }
} }
}

View File

@ -30,8 +30,8 @@ using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Dynamic hls controller. /// Dynamic hls controller.
/// </summary> /// </summary>
@ -2052,4 +2052,3 @@ namespace Jellyfin.Api.Controllers
} }
} }
} }
}

View File

@ -12,8 +12,8 @@ using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Environment Controller. /// Environment Controller.
/// </summary> /// </summary>
@ -194,4 +194,3 @@ namespace Jellyfin.Api.Controllers
return new DefaultDirectoryBrowserInfoDto(); return new DefaultDirectoryBrowserInfoDto();
} }
} }
}

View File

@ -12,8 +12,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Filters controller. /// Filters controller.
/// </summary> /// </summary>
@ -213,4 +213,3 @@ namespace Jellyfin.Api.Controllers
return filters; return filters;
} }
} }
}

View File

@ -18,8 +18,8 @@ using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Genre = MediaBrowser.Controller.Entities.Genre; using Genre = MediaBrowser.Controller.Entities.Genre;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// The genres controller. /// The genres controller.
/// </summary> /// </summary>
@ -208,4 +208,3 @@ namespace Jellyfin.Api.Controllers
return result; return result;
} }
} }
}

View File

@ -15,8 +15,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// The hls segment controller. /// The hls segment controller.
/// </summary> /// </summary>
@ -189,4 +189,3 @@ namespace Jellyfin.Api.Controllers
return FileStreamResponseHelpers.GetStaticFileResult(path, MimeTypes.GetMimeType(path)); return FileStreamResponseHelpers.GetStaticFileResult(path, MimeTypes.GetMimeType(path));
} }
} }
}

View File

@ -30,8 +30,8 @@ using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using Microsoft.Net.Http.Headers; using Microsoft.Net.Http.Headers;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Image controller. /// Image controller.
/// </summary> /// </summary>
@ -2097,4 +2097,3 @@ namespace Jellyfin.Api.Controllers
return PhysicalFile(imagePath, imageContentType ?? MediaTypeNames.Text.Plain); return PhysicalFile(imagePath, imageContentType ?? MediaTypeNames.Text.Plain);
} }
} }
}

View File

@ -16,8 +16,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// The instant mix controller. /// The instant mix controller.
/// </summary> /// </summary>
@ -358,4 +358,3 @@ namespace Jellyfin.Api.Controllers
return result; return result;
} }
} }
}

View File

@ -18,8 +18,8 @@ using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Item lookup controller. /// Item lookup controller.
/// </summary> /// </summary>
@ -271,4 +271,3 @@ namespace Jellyfin.Api.Controllers
return NoContent(); return NoContent();
} }
} }
}

View File

@ -9,8 +9,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Item Refresh Controller. /// Item Refresh Controller.
/// </summary> /// </summary>
@ -83,4 +83,3 @@ namespace Jellyfin.Api.Controllers
return NoContent(); return NoContent();
} }
} }
}

View File

@ -20,8 +20,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Item update controller. /// Item update controller.
/// </summary> /// </summary>
@ -446,4 +446,3 @@ namespace Jellyfin.Api.Controllers
return list; return list;
} }
} }
}

View File

@ -20,8 +20,8 @@ using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// The items controller. /// The items controller.
/// </summary> /// </summary>
@ -870,4 +870,3 @@ namespace Jellyfin.Api.Controllers
returnItems); returnItems);
} }
} }
}

View File

@ -37,8 +37,8 @@ using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Library Controller. /// Library Controller.
/// </summary> /// </summary>
@ -969,4 +969,3 @@ namespace Jellyfin.Api.Controllers
return metadataOptions.Any(i => !i.DisabledImageFetchers.Contains(name, StringComparison.OrdinalIgnoreCase)); return metadataOptions.Any(i => !i.DisabledImageFetchers.Contains(name, StringComparison.OrdinalIgnoreCase));
} }
} }
}

View File

@ -20,8 +20,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// The library structure controller. /// The library structure controller.
/// </summary> /// </summary>
@ -324,4 +324,3 @@ namespace Jellyfin.Api.Controllers
return NoContent(); return NoContent();
} }
} }
}

View File

@ -35,8 +35,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Live tv controller. /// Live tv controller.
/// </summary> /// </summary>
@ -1231,4 +1231,3 @@ namespace Jellyfin.Api.Controllers
} }
} }
} }
}

View File

@ -6,8 +6,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Localization controller. /// Localization controller.
/// </summary> /// </summary>
@ -73,4 +73,3 @@ namespace Jellyfin.Api.Controllers
return Ok(_localization.GetLocalizationOptions()); return Ok(_localization.GetLocalizationOptions());
} }
} }
}

View File

@ -19,8 +19,8 @@ using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.AspNetCore.Mvc.ModelBinding;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// The media info controller. /// The media info controller.
/// </summary> /// </summary>
@ -310,4 +310,3 @@ namespace Jellyfin.Api.Controllers
} }
} }
} }
}

View File

@ -18,8 +18,8 @@ using MediaBrowser.Model.Querying;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Movies controller. /// Movies controller.
/// </summary> /// </summary>
@ -323,4 +323,3 @@ namespace Jellyfin.Api.Controllers
.DistinctNames(); .DistinctNames();
} }
} }
}

View File

@ -18,8 +18,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// The music genres controller. /// The music genres controller.
/// </summary> /// </summary>
@ -195,4 +195,3 @@ namespace Jellyfin.Api.Controllers
return result; return result;
} }
} }
}

View File

@ -11,8 +11,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Package Controller. /// Package Controller.
/// </summary> /// </summary>
@ -164,4 +164,3 @@ namespace Jellyfin.Api.Controllers
return NoContent(); return NoContent();
} }
} }
}

View File

@ -15,8 +15,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Persons controller. /// Persons controller.
/// </summary> /// </summary>
@ -136,4 +136,3 @@ namespace Jellyfin.Api.Controllers
return _dtoService.GetBaseItemDto(item, dtoOptions); return _dtoService.GetBaseItemDto(item, dtoOptions);
} }
} }
}

View File

@ -20,8 +20,8 @@ using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.AspNetCore.Mvc.ModelBinding;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Playlists controller. /// Playlists controller.
/// </summary> /// </summary>
@ -218,4 +218,3 @@ namespace Jellyfin.Api.Controllers
return result; return result;
} }
} }
}

View File

@ -17,8 +17,8 @@ using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Playstate controller. /// Playstate controller.
/// </summary> /// </summary>
@ -379,4 +379,3 @@ namespace Jellyfin.Api.Controllers
return method; return method;
} }
} }
}

View File

@ -17,8 +17,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Plugins controller. /// Plugins controller.
/// </summary> /// </summary>
@ -263,4 +263,3 @@ namespace Jellyfin.Api.Controllers
return NotFound(); return NotFound();
} }
} }
}

View File

@ -13,8 +13,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Quick connect controller. /// Quick connect controller.
/// </summary> /// </summary>
@ -135,4 +135,3 @@ namespace Jellyfin.Api.Controllers
} }
} }
} }
}

View File

@ -15,8 +15,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Remote Images Controller. /// Remote Images Controller.
/// </summary> /// </summary>
@ -176,4 +176,3 @@ namespace Jellyfin.Api.Controllers
return Path.Combine(_applicationPaths.CachePath, "remote-images", filename.Substring(0, 1), filename); return Path.Combine(_applicationPaths.CachePath, "remote-images", filename.Substring(0, 1), filename);
} }
} }
}

View File

@ -8,8 +8,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Scheduled Tasks Controller. /// Scheduled Tasks Controller.
/// </summary> /// </summary>
@ -158,4 +158,3 @@ namespace Jellyfin.Api.Controllers
return NoContent(); return NoContent();
} }
} }
}

View File

@ -20,8 +20,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Search controller. /// Search controller.
/// </summary> /// </summary>
@ -263,4 +263,3 @@ namespace Jellyfin.Api.Controllers
return item.GetParents().OfType<T>().FirstOrDefault(i => i.HasImage(type)); return item.GetParents().OfType<T>().FirstOrDefault(i => i.HasImage(type));
} }
} }
}

View File

@ -19,8 +19,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// The session controller. /// The session controller.
/// </summary> /// </summary>
@ -495,4 +495,3 @@ namespace Jellyfin.Api.Controllers
return _userManager.GetPasswordResetProviders(); return _userManager.GetPasswordResetProviders();
} }
} }
}

View File

@ -10,8 +10,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// The startup wizard controller. /// The startup wizard controller.
/// </summary> /// </summary>
@ -147,4 +147,3 @@ namespace Jellyfin.Api.Controllers
return NoContent(); return NoContent();
} }
} }
}

View File

@ -16,8 +16,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Studios controller. /// Studios controller.
/// </summary> /// </summary>
@ -153,4 +153,3 @@ namespace Jellyfin.Api.Controllers
return _dtoService.GetBaseItemDto(item, dtoOptions); return _dtoService.GetBaseItemDto(item, dtoOptions);
} }
} }
}

View File

@ -30,8 +30,8 @@ using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Subtitle controller. /// Subtitle controller.
/// </summary> /// </summary>
@ -548,4 +548,3 @@ namespace Jellyfin.Api.Controllers
return Ok(); return Ok();
} }
} }
}

View File

@ -13,8 +13,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// The suggestions controller. /// The suggestions controller.
/// </summary> /// </summary>
@ -89,4 +89,3 @@ namespace Jellyfin.Api.Controllers
dtoList); dtoList);
} }
} }
}

View File

@ -16,8 +16,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// The sync play controller. /// The sync play controller.
/// </summary> /// </summary>
@ -421,4 +421,3 @@ namespace Jellyfin.Api.Controllers
return NoContent(); return NoContent();
} }
} }
}

View File

@ -20,8 +20,8 @@ using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// The system controller. /// The system controller.
/// </summary> /// </summary>
@ -220,4 +220,3 @@ namespace Jellyfin.Api.Controllers
return Ok(result); return Ok(result);
} }
} }
}

View File

@ -3,8 +3,8 @@ using MediaBrowser.Model.SyncPlay;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// The time sync controller. /// The time sync controller.
/// </summary> /// </summary>
@ -31,4 +31,3 @@ namespace Jellyfin.Api.Controllers
return new UtcTimeResponse(requestReceptionTime, responseTransmissionTime); return new UtcTimeResponse(requestReceptionTime, responseTransmissionTime);
} }
} }
}

View File

@ -10,8 +10,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// The trailers controller. /// The trailers controller.
/// </summary> /// </summary>
@ -296,4 +296,3 @@ namespace Jellyfin.Api.Controllers
enableImages); enableImages);
} }
} }
}

View File

@ -19,8 +19,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// The tv shows controller. /// The tv shows controller.
/// </summary> /// </summary>
@ -381,4 +381,3 @@ namespace Jellyfin.Api.Controllers
return items; return items;
} }
} }
}

View File

@ -20,8 +20,8 @@ using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// The universal audio controller. /// The universal audio controller.
/// </summary> /// </summary>
@ -337,4 +337,3 @@ namespace Jellyfin.Api.Controllers
return deviceProfile; return deviceProfile;
} }
} }
}

View File

@ -25,8 +25,8 @@ using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// User controller. /// User controller.
/// </summary> /// </summary>
@ -585,4 +585,3 @@ namespace Jellyfin.Api.Controllers
return result; return result;
} }
} }
}

View File

@ -23,8 +23,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// User library controller. /// User library controller.
/// </summary> /// </summary>
@ -425,4 +425,3 @@ namespace Jellyfin.Api.Controllers
return NotFound(); return NotFound();
} }
} }
}

View File

@ -17,8 +17,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// User views controller. /// User views controller.
/// </summary> /// </summary>
@ -135,4 +135,3 @@ namespace Jellyfin.Api.Controllers
.AsEnumerable()); .AsEnumerable());
} }
} }
}

View File

@ -10,8 +10,8 @@ using MediaBrowser.Controller.MediaEncoding;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Attachments controller. /// Attachments controller.
/// </summary> /// </summary>
@ -79,4 +79,3 @@ namespace Jellyfin.Api.Controllers
} }
} }
} }
}

View File

@ -32,8 +32,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// The videos controller. /// The videos controller.
/// </summary> /// </summary>
@ -672,4 +672,3 @@ namespace Jellyfin.Api.Controllers
streamOptions); streamOptions);
} }
} }
}

View File

@ -19,8 +19,8 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers;
{
/// <summary> /// <summary>
/// Years controller. /// Years controller.
/// </summary> /// </summary>
@ -223,4 +223,3 @@ namespace Jellyfin.Api.Controllers
.Select(year => _libraryManager.GetYear(year)); .Select(year => _libraryManager.GetYear(year));
} }
} }
}

View File

@ -7,8 +7,8 @@ using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Querying; using MediaBrowser.Model.Querying;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
namespace Jellyfin.Api.Extensions namespace Jellyfin.Api.Extensions;
{
/// <summary> /// <summary>
/// Dto Extensions. /// Dto Extensions.
/// </summary> /// </summary>
@ -113,4 +113,3 @@ namespace Jellyfin.Api.Extensions
return dtoOptions; return dtoOptions;
} }
} }
}

View File

@ -2,8 +2,8 @@ using Jellyfin.Extensions.Json;
using Microsoft.AspNetCore.Mvc.Formatters; using Microsoft.AspNetCore.Mvc.Formatters;
using Microsoft.Net.Http.Headers; using Microsoft.Net.Http.Headers;
namespace Jellyfin.Api.Formatters namespace Jellyfin.Api.Formatters;
{
/// <summary> /// <summary>
/// Camel Case Json Profile Formatter. /// Camel Case Json Profile Formatter.
/// </summary> /// </summary>
@ -18,4 +18,3 @@ namespace Jellyfin.Api.Formatters
SupportedMediaTypes.Add(MediaTypeHeaderValue.Parse(JsonDefaults.CamelCaseMediaType)); SupportedMediaTypes.Add(MediaTypeHeaderValue.Parse(JsonDefaults.CamelCaseMediaType));
} }
} }
}

View File

@ -3,8 +3,8 @@ using System.Threading.Tasks;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.Formatters; using Microsoft.AspNetCore.Mvc.Formatters;
namespace Jellyfin.Api.Formatters namespace Jellyfin.Api.Formatters;
{
/// <summary> /// <summary>
/// Css output formatter. /// Css output formatter.
/// </summary> /// </summary>
@ -33,4 +33,3 @@ namespace Jellyfin.Api.Formatters
return stringResponse is null ? Task.CompletedTask : context.HttpContext.Response.WriteAsync(stringResponse); return stringResponse is null ? Task.CompletedTask : context.HttpContext.Response.WriteAsync(stringResponse);
} }
} }
}

View File

@ -3,8 +3,8 @@ using Jellyfin.Extensions.Json;
using Microsoft.AspNetCore.Mvc.Formatters; using Microsoft.AspNetCore.Mvc.Formatters;
using Microsoft.Net.Http.Headers; using Microsoft.Net.Http.Headers;
namespace Jellyfin.Api.Formatters namespace Jellyfin.Api.Formatters;
{
/// <summary> /// <summary>
/// Pascal Case Json Profile Formatter. /// Pascal Case Json Profile Formatter.
/// </summary> /// </summary>
@ -21,4 +21,3 @@ namespace Jellyfin.Api.Formatters
SupportedMediaTypes.Add(MediaTypeHeaderValue.Parse(JsonDefaults.PascalCaseMediaType)); SupportedMediaTypes.Add(MediaTypeHeaderValue.Parse(JsonDefaults.PascalCaseMediaType));
} }
} }
}

View File

@ -4,8 +4,8 @@ using System.Threading.Tasks;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.Formatters; using Microsoft.AspNetCore.Mvc.Formatters;
namespace Jellyfin.Api.Formatters namespace Jellyfin.Api.Formatters;
{
/// <summary> /// <summary>
/// Xml output formatter. /// Xml output formatter.
/// </summary> /// </summary>
@ -30,4 +30,3 @@ namespace Jellyfin.Api.Formatters
return stringResponse is null ? Task.CompletedTask : context.HttpContext.Response.WriteAsync(stringResponse); return stringResponse is null ? Task.CompletedTask : context.HttpContext.Response.WriteAsync(stringResponse);
} }
} }
}

View File

@ -16,8 +16,8 @@ using MediaBrowser.Model.Net;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Helpers namespace Jellyfin.Api.Helpers;
{
/// <summary> /// <summary>
/// Audio helper. /// Audio helper.
/// </summary> /// </summary>
@ -177,4 +177,3 @@ namespace Jellyfin.Api.Helpers
cancellationTokenSource).ConfigureAwait(false); cancellationTokenSource).ConfigureAwait(false);
} }
} }
}

View File

@ -25,8 +25,8 @@ using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using Microsoft.Net.Http.Headers; using Microsoft.Net.Http.Headers;
namespace Jellyfin.Api.Helpers namespace Jellyfin.Api.Helpers;
{
/// <summary> /// <summary>
/// Dynamic hls helper. /// Dynamic hls helper.
/// </summary> /// </summary>
@ -746,4 +746,3 @@ namespace Jellyfin.Api.Helpers
return newPlaylist.Contains(",fLaC\"", StringComparison.Ordinal) ? newPlaylist : string.Empty; return newPlaylist.Contains(",fLaC\"", StringComparison.Ordinal) ? newPlaylist : string.Empty;
} }
} }
}

View File

@ -11,8 +11,8 @@ using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.Net.Http.Headers; using Microsoft.Net.Http.Headers;
namespace Jellyfin.Api.Helpers namespace Jellyfin.Api.Helpers;
{
/// <summary> /// <summary>
/// The stream response helpers. /// The stream response helpers.
/// </summary> /// </summary>
@ -117,4 +117,3 @@ namespace Jellyfin.Api.Helpers
} }
} }
} }
}

View File

@ -2,8 +2,8 @@
using System.Globalization; using System.Globalization;
using System.Text; using System.Text;
namespace Jellyfin.Api.Helpers namespace Jellyfin.Api.Helpers;
{
/// <summary> /// <summary>
/// Hls Codec string helpers. /// Hls Codec string helpers.
/// </summary> /// </summary>
@ -180,4 +180,3 @@ namespace Jellyfin.Api.Helpers
return result.ToString(); return result.ToString();
} }
} }
}

View File

@ -8,8 +8,8 @@ using MediaBrowser.Controller.MediaEncoding;
using MediaBrowser.Model.IO; using MediaBrowser.Model.IO;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace Jellyfin.Api.Helpers namespace Jellyfin.Api.Helpers;
{
/// <summary> /// <summary>
/// The hls helpers. /// The hls helpers.
/// </summary> /// </summary>
@ -135,4 +135,3 @@ namespace Jellyfin.Api.Helpers
return text; return text;
} }
} }
}

View File

@ -25,8 +25,8 @@ using MediaBrowser.Model.Session;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace Jellyfin.Api.Helpers namespace Jellyfin.Api.Helpers;
{
/// <summary> /// <summary>
/// Media info helper. /// Media info helper.
/// </summary> /// </summary>
@ -497,4 +497,3 @@ namespace Jellyfin.Api.Helpers
return maxBitrate; return maxBitrate;
} }
} }
}

View File

@ -6,8 +6,8 @@ using System.Threading.Tasks;
using Jellyfin.Api.Models.PlaybackDtos; using Jellyfin.Api.Models.PlaybackDtos;
using MediaBrowser.Model.IO; using MediaBrowser.Model.IO;
namespace Jellyfin.Api.Helpers namespace Jellyfin.Api.Helpers;
{
/// <summary> /// <summary>
/// A progressive file stream for transferring transcoded files as they are written to. /// A progressive file stream for transferring transcoded files as they are written to.
/// </summary> /// </summary>
@ -180,4 +180,3 @@ namespace Jellyfin.Api.Helpers
return bytesRead > 0 || (_job?.HasExited ?? elapsed >= _timeoutMs); return bytesRead > 0 || (_job?.HasExited ?? elapsed >= _timeoutMs);
} }
} }
}

View File

@ -16,8 +16,8 @@ using MediaBrowser.Model.Dto;
using MediaBrowser.Model.Querying; using MediaBrowser.Model.Querying;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
namespace Jellyfin.Api.Helpers namespace Jellyfin.Api.Helpers;
{
/// <summary> /// <summary>
/// Request Extensions. /// Request Extensions.
/// </summary> /// </summary>
@ -145,4 +145,3 @@ namespace Jellyfin.Api.Helpers
dtos.ToArray()); dtos.ToArray());
} }
} }
}

View File

@ -22,8 +22,8 @@ using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Primitives; using Microsoft.Extensions.Primitives;
using Microsoft.Net.Http.Headers; using Microsoft.Net.Http.Headers;
namespace Jellyfin.Api.Helpers namespace Jellyfin.Api.Helpers;
{
/// <summary> /// <summary>
/// The streaming helpers. /// The streaming helpers.
/// </summary> /// </summary>
@ -780,4 +780,3 @@ namespace Jellyfin.Api.Helpers
} }
} }
} }
}

View File

@ -27,8 +27,8 @@ using MediaBrowser.Model.Session;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace Jellyfin.Api.Helpers namespace Jellyfin.Api.Helpers;
{
/// <summary> /// <summary>
/// Transcoding job helpers. /// Transcoding job helpers.
/// </summary> /// </summary>
@ -911,4 +911,3 @@ namespace Jellyfin.Api.Helpers
} }
} }
} }
}

View File

@ -7,8 +7,8 @@ using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using static MediaBrowser.Controller.Extensions.ConfigurationExtensions; using static MediaBrowser.Controller.Extensions.ConfigurationExtensions;
namespace Jellyfin.Api.Middleware namespace Jellyfin.Api.Middleware;
{
/// <summary> /// <summary>
/// Redirect requests without baseurl prefix to the baseurl prefixed URL. /// Redirect requests without baseurl prefix to the baseurl prefixed URL.
/// </summary> /// </summary>
@ -78,4 +78,3 @@ namespace Jellyfin.Api.Middleware
await _next(httpContext).ConfigureAwait(false); await _next(httpContext).ConfigureAwait(false);
} }
} }
}

View File

@ -12,8 +12,8 @@ using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace Jellyfin.Api.Middleware namespace Jellyfin.Api.Middleware;
{
/// <summary> /// <summary>
/// Exception Middleware. /// Exception Middleware.
/// </summary> /// </summary>
@ -148,4 +148,3 @@ namespace Jellyfin.Api.Middleware
StringComparison.OrdinalIgnoreCase); StringComparison.OrdinalIgnoreCase);
} }
} }
}

View File

@ -4,8 +4,8 @@ using MediaBrowser.Common.Extensions;
using MediaBrowser.Common.Net; using MediaBrowser.Common.Net;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
namespace Jellyfin.Api.Middleware namespace Jellyfin.Api.Middleware;
{
/// <summary> /// <summary>
/// Validates the IP of requests coming from local networks wrt. remote access. /// Validates the IP of requests coming from local networks wrt. remote access.
/// </summary> /// </summary>
@ -47,4 +47,3 @@ namespace Jellyfin.Api.Middleware
await _next(httpContext).ConfigureAwait(false); await _next(httpContext).ConfigureAwait(false);
} }
} }
}

View File

@ -5,8 +5,8 @@ using MediaBrowser.Common.Net;
using MediaBrowser.Controller.Configuration; using MediaBrowser.Controller.Configuration;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
namespace Jellyfin.Api.Middleware namespace Jellyfin.Api.Middleware;
{
/// <summary> /// <summary>
/// Validates the LAN host IP based on application configuration. /// Validates the LAN host IP based on application configuration.
/// </summary> /// </summary>
@ -42,4 +42,3 @@ namespace Jellyfin.Api.Middleware
await _next(httpContext).ConfigureAwait(false); await _next(httpContext).ConfigureAwait(false);
} }
} }
}

View File

@ -3,8 +3,8 @@ using System.Threading.Tasks;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace Jellyfin.Api.Middleware namespace Jellyfin.Api.Middleware;
{
/// <summary> /// <summary>
/// Removes /emby and /mediabrowser from requested route. /// Removes /emby and /mediabrowser from requested route.
/// </summary> /// </summary>
@ -51,4 +51,3 @@ namespace Jellyfin.Api.Middleware
await _next(httpContext).ConfigureAwait(false); await _next(httpContext).ConfigureAwait(false);
} }
} }
}

View File

@ -2,8 +2,8 @@ using System.Threading.Tasks;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features; using Microsoft.AspNetCore.Http.Features;
namespace Jellyfin.Api.Middleware namespace Jellyfin.Api.Middleware;
{
/// <summary> /// <summary>
/// URL decodes the querystring before binding. /// URL decodes the querystring before binding.
/// </summary> /// </summary>
@ -36,4 +36,3 @@ namespace Jellyfin.Api.Middleware
await _next(httpContext).ConfigureAwait(false); await _next(httpContext).ConfigureAwait(false);
} }
} }
}

View File

@ -7,8 +7,8 @@ using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Extensions; using Microsoft.AspNetCore.Http.Extensions;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace Jellyfin.Api.Middleware namespace Jellyfin.Api.Middleware;
{
/// <summary> /// <summary>
/// Response time middleware. /// Response time middleware.
/// </summary> /// </summary>
@ -66,4 +66,3 @@ namespace Jellyfin.Api.Middleware
await this._next(context).ConfigureAwait(false); await this._next(context).ConfigureAwait(false);
} }
} }
}

View File

@ -3,8 +3,8 @@ using System.Threading.Tasks;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace Jellyfin.Api.Middleware namespace Jellyfin.Api.Middleware;
{
/// <summary> /// <summary>
/// Redirect requests to robots.txt to web/robots.txt. /// Redirect requests to robots.txt to web/robots.txt.
/// </summary> /// </summary>
@ -44,4 +44,3 @@ namespace Jellyfin.Api.Middleware
await _next(httpContext).ConfigureAwait(false); await _next(httpContext).ConfigureAwait(false);
} }
} }
}

View File

@ -5,8 +5,8 @@ using MediaBrowser.Controller;
using MediaBrowser.Model.Globalization; using MediaBrowser.Model.Globalization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
namespace Jellyfin.Api.Middleware namespace Jellyfin.Api.Middleware;
{
/// <summary> /// <summary>
/// Shows a custom message during server startup. /// Shows a custom message during server startup.
/// </summary> /// </summary>
@ -48,4 +48,3 @@ namespace Jellyfin.Api.Middleware
await httpContext.Response.WriteAsync(message, httpContext.RequestAborted).ConfigureAwait(false); await httpContext.Response.WriteAsync(message, httpContext.RequestAborted).ConfigureAwait(false);
} }
} }
}

View File

@ -6,8 +6,8 @@ using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features; using Microsoft.AspNetCore.Http.Features;
using Microsoft.Extensions.Primitives; using Microsoft.Extensions.Primitives;
namespace Jellyfin.Api.Middleware namespace Jellyfin.Api.Middleware;
{
/// <summary> /// <summary>
/// Defines the <see cref="UrlDecodeQueryFeature"/>. /// Defines the <see cref="UrlDecodeQueryFeature"/>.
/// </summary> /// </summary>
@ -81,4 +81,3 @@ namespace Jellyfin.Api.Middleware
} }
} }
} }
}

View File

@ -2,8 +2,8 @@ using System.Threading.Tasks;
using MediaBrowser.Controller.Net; using MediaBrowser.Controller.Net;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
namespace Jellyfin.Api.Middleware namespace Jellyfin.Api.Middleware;
{
/// <summary> /// <summary>
/// Handles WebSocket requests. /// Handles WebSocket requests.
/// </summary> /// </summary>
@ -37,4 +37,3 @@ namespace Jellyfin.Api.Middleware
await webSocketManager.WebSocketRequestHandler(httpContext).ConfigureAwait(false); await webSocketManager.WebSocketRequestHandler(httpContext).ConfigureAwait(false);
} }
} }
}

View File

@ -5,8 +5,8 @@ using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.AspNetCore.Mvc.ModelBinding;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace Jellyfin.Api.ModelBinders namespace Jellyfin.Api.ModelBinders;
{
/// <summary> /// <summary>
/// Comma delimited array model binder. /// Comma delimited array model binder.
/// Returns an empty array of specified type if there is no query parameter. /// Returns an empty array of specified type if there is no query parameter.
@ -87,4 +87,3 @@ namespace Jellyfin.Api.ModelBinders
return typedValues; return typedValues;
} }
} }
}

Some files were not shown because too many files have changed in this diff Show More