mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-17 23:41:28 +00:00
Add index report plugin models
This commit is contained in:
@@ -99,6 +99,91 @@ public sealed class SceneSearchIndexStatus
|
||||
}
|
||||
|
||||
|
||||
public sealed class SceneSearchIndexReportResponse
|
||||
{
|
||||
[JsonPropertyName("available")]
|
||||
public bool Available { get; set; }
|
||||
|
||||
[JsonPropertyName("kind")]
|
||||
public string? Kind { get; set; }
|
||||
|
||||
[JsonPropertyName("status")]
|
||||
public string? Status { get; set; }
|
||||
|
||||
[JsonPropertyName("started_at")]
|
||||
public string? StartedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("finished_at")]
|
||||
public string? FinishedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("error")]
|
||||
public string? Error { get; set; }
|
||||
|
||||
[JsonPropertyName("summary")]
|
||||
public SceneSearchIndexReportSummary Summary { get; set; } = new();
|
||||
|
||||
[JsonPropertyName("category")]
|
||||
public string? Category { get; set; }
|
||||
|
||||
[JsonPropertyName("offset")]
|
||||
public int Offset { get; set; }
|
||||
|
||||
[JsonPropertyName("limit")]
|
||||
public int Limit { get; set; }
|
||||
|
||||
[JsonPropertyName("total")]
|
||||
public int Total { get; set; }
|
||||
|
||||
[JsonPropertyName("items")]
|
||||
public List<SceneSearchIndexReportItem> Items { get; set; } = [];
|
||||
}
|
||||
|
||||
public sealed class SceneSearchIndexReportSummary
|
||||
{
|
||||
[JsonPropertyName("indexed")]
|
||||
public int Indexed { get; set; }
|
||||
|
||||
[JsonPropertyName("skipped")]
|
||||
public int Skipped { get; set; }
|
||||
|
||||
[JsonPropertyName("failed")]
|
||||
public int Failed { get; set; }
|
||||
|
||||
[JsonPropertyName("pruned")]
|
||||
public int Pruned { get; set; }
|
||||
|
||||
[JsonPropertyName("removed_libraries")]
|
||||
public int RemovedLibraries { get; set; }
|
||||
}
|
||||
|
||||
public sealed class SceneSearchIndexReportItem
|
||||
{
|
||||
[JsonPropertyName("status")]
|
||||
public string Status { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("library_id")]
|
||||
public string LibraryId { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("library")]
|
||||
public string Library { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("item_id")]
|
||||
public string ItemId { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("reason")]
|
||||
public string Reason { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("frames")]
|
||||
public int? Frames { get; set; }
|
||||
|
||||
[JsonPropertyName("preserved_annotations")]
|
||||
public int? PreservedAnnotations { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public sealed class SceneSearchCaptionRequest
|
||||
{
|
||||
[JsonPropertyName("library_ids")]
|
||||
|
||||
Reference in New Issue
Block a user