Feature/local metadata more tags (#832)
* Stashing code * removed some debug code on series detail page. Now detail is collapsed by default. * Added AgeRating * Fixed a crash when NetVips tries to write a cover file and cover directory is not existing. * When a card is selected for bulk actions, show an outline in addition to select box * Added AgeRating into the metadata parsing. Added a hack where ComicInfo uses Number in ComicInfo rather than Volume. This is to test out the effects on users libraries. * Added AgeRating and ReleaseDate to the metadata implelentation.
This commit is contained in:
parent
46f37069db
commit
af24c928d7
31 changed files with 2825 additions and 101 deletions
|
@ -41,6 +41,10 @@ namespace API.Entities
|
|||
/// Used for books/specials to display custom title. For non-specials/books, will be set to <see cref="Range"/>
|
||||
/// </summary>
|
||||
public string Title { get; set; }
|
||||
/// <summary>
|
||||
/// Age Rating for the issue/chapter
|
||||
/// </summary>
|
||||
public AgeRating AgeRating { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
@ -48,7 +52,10 @@ namespace API.Entities
|
|||
/// </summary>
|
||||
/// <remarks>This should not be confused with Title which is used for special filenames.</remarks>
|
||||
public string TitleName { get; set; } = string.Empty;
|
||||
// public string Year { get; set; } // Only time I can think this will be more than 1 year is for a volume which will be a spread
|
||||
/// <summary>
|
||||
/// Date which chapter was released
|
||||
/// </summary>
|
||||
public DateTime ReleaseDate { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
|
35
API/Entities/Enums/AgeRating.cs
Normal file
35
API/Entities/Enums/AgeRating.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
using System.ComponentModel;
|
||||
|
||||
namespace API.Entities.Enums;
|
||||
|
||||
public enum AgeRating
|
||||
{
|
||||
[Description("Unknown")]
|
||||
Unknown = 0,
|
||||
[Description("Rating Pending")]
|
||||
RatingPending = 1,
|
||||
[Description("Early Childhood")]
|
||||
EarlyChildhood = 2,
|
||||
[Description("Everyone")]
|
||||
Everyone = 3,
|
||||
[Description("G")]
|
||||
G = 4,
|
||||
[Description("Everyone 10+")]
|
||||
Everyone10Plus = 5,
|
||||
[Description("Kids to Adults")]
|
||||
KidsToAdults = 6,
|
||||
[Description("Teen")]
|
||||
Teen = 7,
|
||||
[Description("Mature 15+")]
|
||||
Mature15Plus = 8,
|
||||
[Description("Mature 17+")]
|
||||
Mature17Plus = 9,
|
||||
[Description("Mature")]
|
||||
Mature = 10,
|
||||
[Description("Adults Only 18+")]
|
||||
AdultsOnly = 11,
|
||||
[Description("X 18+")]
|
||||
X18Plus = 12
|
||||
|
||||
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using API.Entities.Enums;
|
||||
using API.Entities.Interfaces;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
|
@ -21,6 +22,14 @@ namespace API.Entities.Metadata
|
|||
/// </summary>
|
||||
public ICollection<Person> People { get; set; } = new List<Person>();
|
||||
|
||||
/// <summary>
|
||||
/// Highest Age Rating from all Chapters
|
||||
/// </summary>
|
||||
public AgeRating AgeRating { get; set; }
|
||||
/// <summary>
|
||||
/// Earliest Year from all chapters
|
||||
/// </summary>
|
||||
public int ReleaseYear { get; set; }
|
||||
|
||||
// Relationship
|
||||
public Series Series { get; set; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue