mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-19 00:03:36 +00:00
40 lines
1.0 KiB
C#
40 lines
1.0 KiB
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Jellyfin.Plugin.SceneSearch;
|
|
|
|
internal sealed class SceneSearchResponse
|
|
{
|
|
[JsonPropertyName("items")]
|
|
public List<SceneSearchItem> Items { get; set; } = [];
|
|
}
|
|
|
|
internal sealed class SceneSearchItem
|
|
{
|
|
[JsonPropertyName("jellyfin_item_id")]
|
|
public string? JellyfinItemId { get; set; }
|
|
|
|
[JsonPropertyName("jellyfin_item_type")]
|
|
public string? JellyfinItemType { get; set; }
|
|
|
|
[JsonPropertyName("title")]
|
|
public string? Title { get; set; }
|
|
|
|
[JsonPropertyName("best_timestamp_ms")]
|
|
public long BestTimestampMs { get; set; }
|
|
|
|
[JsonPropertyName("best_caption")]
|
|
public string? BestCaption { get; set; }
|
|
|
|
[JsonPropertyName("caption_text_match")]
|
|
public bool CaptionTextMatch { get; set; }
|
|
|
|
[JsonPropertyName("ranking_score")]
|
|
public double? RankingScore { get; set; }
|
|
|
|
[JsonPropertyName("siglip_score")]
|
|
public double? SiglipScore { get; set; }
|
|
|
|
[JsonPropertyName("scene_matches")]
|
|
public int SceneMatches { get; set; }
|
|
}
|