File Created Date (#1434)
* Capture date when Kavita creates a MangaFile so we can show the date on the UI. * On startup, exit early for migration directory if it's a fresh install and we have migrations to run but no settings stored yet. * Blur summaries should apply when there isn't any read more collapsable * Fixed custom theme files not loading. * Cleaned up the logic for displaying the manga file date
This commit is contained in:
parent
79b8df1112
commit
7a026e9497
11 changed files with 1653 additions and 6 deletions
|
@ -2,13 +2,14 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using API.Entities.Enums;
|
||||
using API.Entities.Interfaces;
|
||||
|
||||
namespace API.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a wrapper to the underlying file. This provides information around file, like number of pages, format, etc.
|
||||
/// </summary>
|
||||
public class MangaFile
|
||||
public class MangaFile : IEntityDate
|
||||
{
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
|
@ -20,6 +21,9 @@ namespace API.Entities
|
|||
/// </summary>
|
||||
public int Pages { get; set; }
|
||||
public MangaFormat Format { get; set; }
|
||||
/// <inheritdoc cref="IEntityDate.Created"/>
|
||||
public DateTime Created { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Last time underlying file was modified
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue