Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/blame/commit/e1c6bb0482230fd37cee352a169f2d3c441468e8/Jellyfin.Api/Attributes/AcceptsFileAttribute.cs
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Jellyfin.Api.Attributes
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Internal produces image attribute.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[AttributeUsage(AttributeTargets.Method)]
|
|
|
|
|
public class AcceptsFileAttribute : Attribute
|
|
|
|
|
{
|
|
|
|
|
private readonly string[] _contentTypes;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes a new instance of the <see cref="AcceptsFileAttribute"/> class.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="contentTypes">Content types this endpoint produces.</param>
|
|
|
|
|
public AcceptsFileAttribute(params string[] contentTypes)
|
|
|
|
|
{
|
|
|
|
|
_contentTypes = contentTypes;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the configured content types.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>the configured content types.</returns>
|
|
|
|
|
public string[] GetContentTypes() => _contentTypes;
|
|
|
|
|
}
|
|
|
|
|
}
|