Added work remaining url for remote extraction client

This commit is contained in:
2026-06-12 19:03:31 +02:00
parent 4c637de442
commit f1cffa7dfa
8 changed files with 220 additions and 4 deletions
@@ -0,0 +1,30 @@
using System;
using System.Text.Json.Serialization;
namespace Jellyfin.Plugin.JRay.Models;
/// <summary>
/// A library item that has no truth data yet (neither a managed upload nor
/// a sidecar file), offered to an extraction worker as a candidate to process.
/// </summary>
public class PendingExtractionItem
{
/// <summary>
/// Gets or sets the Jellyfin item id, used to push results back via
/// <c>PUT /Plugins/JRay/Items/{itemId}/Truth</c>.
/// </summary>
[JsonPropertyName("item_id")]
public Guid ItemId { get; set; }
/// <summary>
/// Gets or sets the absolute path to the media file, as seen by Jellyfin.
/// </summary>
[JsonPropertyName("path")]
public string Path { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the item's display name.
/// </summary>
[JsonPropertyName("name")]
public string Name { get; set; } = string.Empty;
}