File Transformation reflection callbacks often fail across plugin load contexts; register an anonymous TransformIndexHtml endpoint as the reliable injection path. Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
462 B
C#
18 lines
462 B
C#
using System.Text.Json.Serialization;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Jellyfin.Plugin.Request.Hosting;
|
|
|
|
/// <summary>
|
|
/// Payload shape expected by the File Transformation callback/endpoint.
|
|
/// </summary>
|
|
public sealed class IndexHtmlPatchPayload
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the current file contents.
|
|
/// </summary>
|
|
[JsonProperty("contents")]
|
|
[JsonPropertyName("contents")]
|
|
public string Contents { get; set; } = string.Empty;
|
|
}
|