Allow movie/TV requests without a TMDB match via a Custom form, and remount the embedded Request UI when the home tab opens empty. Co-authored-by: Cursor <cursoragent@cursor.com>
86 lines
2.3 KiB
C#
86 lines
2.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Jellyfin.Plugin.Request.Storage;
|
|
|
|
/// <summary>
|
|
/// A user-submitted movie or TV request.
|
|
/// </summary>
|
|
public sealed class MediaRequest
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the request identifier.
|
|
/// </summary>
|
|
public Guid Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the media type (<c>movie</c> or <c>tv</c>).
|
|
/// </summary>
|
|
public string MediaType { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the TMDB identifier. Zero for custom titles not found on TMDB.
|
|
/// </summary>
|
|
public int TmdbId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether this was a custom (non-TMDB) request.
|
|
/// </summary>
|
|
public bool IsCustom { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the display title.
|
|
/// </summary>
|
|
public string Title { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Gets or sets optional notes from the requester (useful for custom titles).
|
|
/// </summary>
|
|
public string? Notes { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the release year when known.
|
|
/// </summary>
|
|
public int? Year { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the TMDB poster path.
|
|
/// </summary>
|
|
public string? PosterPath { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets season numbers for TV, or null / empty for all seasons.
|
|
/// </summary>
|
|
public List<int>? Seasons { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether all seasons were requested.
|
|
/// </summary>
|
|
public bool AllSeasons { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the requesting user's identifier.
|
|
/// </summary>
|
|
public Guid RequestedByUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the requesting user's display name.
|
|
/// </summary>
|
|
public string RequestedByName { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the UTC creation timestamp.
|
|
/// </summary>
|
|
public DateTime CreatedAtUtc { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the request status.
|
|
/// </summary>
|
|
public RequestStatus Status { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets an optional administrator note.
|
|
/// </summary>
|
|
public string? AdminNote { get; set; }
|
|
}
|