ComicVine Finish Line (#2779)

This commit is contained in:
Joe Milazzo 2024-03-14 15:03:53 -06:00 committed by GitHub
parent 4ccac5f479
commit 353d44a882
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
57 changed files with 8108 additions and 1116 deletions

View file

@ -76,7 +76,7 @@ public class ScannedSeriesResult
public class SeriesModified
{
public required string FolderPath { get; set; }
public required string? FolderPath { get; set; }
public required string SeriesName { get; set; }
public DateTime LastScanned { get; set; }
public MangaFormat Format { get; set; }
@ -416,7 +416,6 @@ public class ParseScannedFiles
.ToList()!;
result.ParserInfos = infos;
return;
}
@ -453,7 +452,7 @@ public class ParseScannedFiles
if (float.TryParse(chapter.Chapters, out var parsedChapter))
{
counter = parsedChapter;
if (!string.IsNullOrEmpty(prevIssue) && parsedChapter.Is(float.Parse(prevIssue)))
if (!string.IsNullOrEmpty(prevIssue) && float.TryParse(prevIssue, out var prevIssueFloat) && parsedChapter.Is(prevIssueFloat))
{
// Bump by 0.1
counter += 0.1f;