feat(repo): add request plugin with jellyfin catalog manifest
Ship the plugin sources, release zip, and SeerrFin-style manifest.json so Jellyfin can install from the Gitea raw repository URL. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
3a1960d860
commit
bf6cd4540f
30 files changed
+3096
No files matched your search
@@ -0,0 +1,200 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Jellyfin.Plugin.Request.Tmdb;
|
||||
|
||||
/// <summary>
|
||||
/// Normalized search hit returned to clients.
|
||||
/// </summary>
|
||||
public sealed class TmdbSearchItem
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the TMDB identifier.
|
||||
/// </summary>
|
||||
public int TmdbId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the media type.
|
||||
/// </summary>
|
||||
public string MediaType { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the title.
|
||||
/// </summary>
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the overview.
|
||||
/// </summary>
|
||||
public string? Overview { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the year.
|
||||
/// </summary>
|
||||
public int? Year { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the poster path.
|
||||
/// </summary>
|
||||
public string? PosterPath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the full poster URL when a path is present.
|
||||
/// </summary>
|
||||
public string? PosterUrl => string.IsNullOrEmpty(PosterPath)
|
||||
? null
|
||||
: $"https://image.tmdb.org/t/p/w342{PosterPath}";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Normalized media detail returned to clients.
|
||||
/// </summary>
|
||||
public sealed class TmdbMediaDetail
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the TMDB identifier.
|
||||
/// </summary>
|
||||
public int TmdbId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the media type.
|
||||
/// </summary>
|
||||
public string MediaType { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the title.
|
||||
/// </summary>
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the overview.
|
||||
/// </summary>
|
||||
public string? Overview { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the year.
|
||||
/// </summary>
|
||||
public int? Year { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the poster path.
|
||||
/// </summary>
|
||||
public string? PosterPath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the full poster URL when a path is present.
|
||||
/// </summary>
|
||||
public string? PosterUrl => string.IsNullOrEmpty(PosterPath)
|
||||
? null
|
||||
: $"https://image.tmdb.org/t/p/w500{PosterPath}";
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets TV seasons when applicable.
|
||||
/// </summary>
|
||||
public List<TmdbSeasonInfo> Seasons { get; set; } = [];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Season summary for TV detail views.
|
||||
/// </summary>
|
||||
public sealed class TmdbSeasonInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the season number.
|
||||
/// </summary>
|
||||
public int SeasonNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the season name.
|
||||
/// </summary>
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the episode count.
|
||||
/// </summary>
|
||||
public int EpisodeCount { get; set; }
|
||||
}
|
||||
|
||||
internal sealed class TmdbSearchResponse
|
||||
{
|
||||
[JsonPropertyName("results")]
|
||||
public List<TmdbRawResult> Results { get; set; } = [];
|
||||
}
|
||||
|
||||
internal sealed class TmdbRawResult
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[JsonPropertyName("media_type")]
|
||||
public string? MediaType { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string? Name { get; set; }
|
||||
|
||||
[JsonPropertyName("overview")]
|
||||
public string? Overview { get; set; }
|
||||
|
||||
[JsonPropertyName("poster_path")]
|
||||
public string? PosterPath { get; set; }
|
||||
|
||||
[JsonPropertyName("release_date")]
|
||||
public string? ReleaseDate { get; set; }
|
||||
|
||||
[JsonPropertyName("first_air_date")]
|
||||
public string? FirstAirDate { get; set; }
|
||||
}
|
||||
|
||||
internal sealed class TmdbMovieDetailResponse
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
[JsonPropertyName("overview")]
|
||||
public string? Overview { get; set; }
|
||||
|
||||
[JsonPropertyName("poster_path")]
|
||||
public string? PosterPath { get; set; }
|
||||
|
||||
[JsonPropertyName("release_date")]
|
||||
public string? ReleaseDate { get; set; }
|
||||
}
|
||||
|
||||
internal sealed class TmdbTvDetailResponse
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string? Name { get; set; }
|
||||
|
||||
[JsonPropertyName("overview")]
|
||||
public string? Overview { get; set; }
|
||||
|
||||
[JsonPropertyName("poster_path")]
|
||||
public string? PosterPath { get; set; }
|
||||
|
||||
[JsonPropertyName("first_air_date")]
|
||||
public string? FirstAirDate { get; set; }
|
||||
|
||||
[JsonPropertyName("seasons")]
|
||||
public List<TmdbSeasonRaw> Seasons { get; set; } = [];
|
||||
}
|
||||
|
||||
internal sealed class TmdbSeasonRaw
|
||||
{
|
||||
[JsonPropertyName("season_number")]
|
||||
public int SeasonNumber { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string? Name { get; set; }
|
||||
|
||||
[JsonPropertyName("episode_count")]
|
||||
public int EpisodeCount { get; set; }
|
||||
}
|
||||
Reference in new issue
Block a user