* Added Last Folder Scanned time to series info modal. Tweaked the info event detail modal to have a primary and thus be auto-dismissable * Added an error event when multiple series are found in processing a series. * Fixed a bug where a series could get stuck with other series due to a bad select query. Started adding the force flag hook for the UI and designing the confirm. Confirm service now also has ability to hide the close button. Updated error events and logging in the loop, to be more informative * Fixed a bug where confirm service wasn't showing the proper body content. * Hooked up force scan series * refresh metadata now has force update * Fixed up the messaging with the prompt on scan, hooked it up properly in the scan library to avoid the check if the whole library needs to even be scanned. Fixed a bug where NormalizedLocalizedName wasn't being calculated on new entities. Started adding unit tests for this problematic repo method. * Fixed a bug where we updated NormalizedLocalizedName before we set it. * Send an info to the UI when series are spread between multiple library level folders. * Added some logger output when there are no files found in a folder. Return early if there are no files found, so we can avoid some small loops of code. * Fixed an issue where multiple series in a folder with localized series would cause unintended grouping. This is not supported and hence we will warn them and allow the bad grouping. * Added a case where scan series fails due to the folder being removed. We will now log an error * Normalize paths when finding the highest directory till root. * Fixed an issue with Scan Series where changing a series' folder to a different path but the original series folder existed with another series in it, would cause the series to not be deleted. * Fixed some bugs around specials causing a series merge issue on scan series. * Removed a bug marker * Cleaned up some of the scan loop and removed a test I don't need. * Remove any prompts for force flow, it doesn't work well. Leave the API as is though. * Fixed up a check for duplicate ScanLibrary calls
66 lines
2.5 KiB
C#
66 lines
2.5 KiB
C#
using System;
|
|
using API.Entities.Enums;
|
|
using API.Entities.Interfaces;
|
|
|
|
namespace API.DTOs
|
|
{
|
|
public class SeriesDto : IHasReadTimeEstimate
|
|
{
|
|
public int Id { get; init; }
|
|
public string Name { get; init; }
|
|
public string OriginalName { get; init; }
|
|
public string LocalizedName { get; init; }
|
|
public string SortName { get; init; }
|
|
public string Summary { get; init; }
|
|
public int Pages { get; init; }
|
|
public bool CoverImageLocked { get; set; }
|
|
/// <summary>
|
|
/// Sum of pages read from linked Volumes. Calculated at API-time.
|
|
/// </summary>
|
|
public int PagesRead { get; set; }
|
|
/// <summary>
|
|
/// DateTime representing last time the series was Read. Calculated at API-time.
|
|
/// </summary>
|
|
public DateTime LatestReadDate { get; set; }
|
|
/// <summary>
|
|
/// DateTime representing last time a chapter was added to the Series
|
|
/// </summary>
|
|
public DateTime LastChapterAdded { get; set; }
|
|
/// <summary>
|
|
/// Rating from logged in user. Calculated at API-time.
|
|
/// </summary>
|
|
public int UserRating { get; set; }
|
|
/// <summary>
|
|
/// Review from logged in user. Calculated at API-time.
|
|
/// </summary>
|
|
public string UserReview { get; set; }
|
|
public MangaFormat Format { get; set; }
|
|
|
|
public DateTime Created { get; set; }
|
|
|
|
public bool NameLocked { get; set; }
|
|
public bool SortNameLocked { get; set; }
|
|
public bool LocalizedNameLocked { get; set; }
|
|
/// <summary>
|
|
/// Total number of words for the series. Only applies to epubs.
|
|
/// </summary>
|
|
public long WordCount { get; set; }
|
|
|
|
public int LibraryId { get; set; }
|
|
public string LibraryName { get; set; }
|
|
/// <inheritdoc cref="IHasReadTimeEstimate.MinHoursToRead"/>
|
|
public int MinHoursToRead { get; set; }
|
|
/// <inheritdoc cref="IHasReadTimeEstimate.MaxHoursToRead"/>
|
|
public int MaxHoursToRead { get; set; }
|
|
/// <inheritdoc cref="IHasReadTimeEstimate.AvgHoursToRead"/>
|
|
public int AvgHoursToRead { get; set; }
|
|
/// <summary>
|
|
/// The highest level folder for this Series
|
|
/// </summary>
|
|
public string FolderPath { get; set; }
|
|
/// <summary>
|
|
/// The last time the folder for this series was scanned
|
|
/// </summary>
|
|
public DateTime LastFolderScanned { get; set; }
|
|
}
|
|
}
|