Version Update Modal Rework + A few bugfixes (#3664)

This commit is contained in:
Joe Milazzo 2025-03-22 15:05:48 -05:00 committed by GitHub
parent 9fb3bdd548
commit 43d0d1277f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
65 changed files with 1963 additions and 805 deletions

View file

@ -11,14 +11,14 @@ public class ParserInfoTests
{
var p1 = new ParserInfo()
{
Chapters = API.Services.Tasks.Scanner.Parser.Parser.DefaultChapter,
Chapters = Parser.DefaultChapter,
Edition = "",
Format = MangaFormat.Archive,
FullFilePath = "/manga/darker than black.cbz",
IsSpecial = false,
Series = "darker than black",
Title = "darker than black",
Volumes = API.Services.Tasks.Scanner.Parser.Parser.LooseLeafVolume
Volumes = Parser.LooseLeafVolume
};
var p2 = new ParserInfo()
@ -30,7 +30,7 @@ public class ParserInfoTests
IsSpecial = false,
Series = "darker than black",
Title = "Darker Than Black",
Volumes = API.Services.Tasks.Scanner.Parser.Parser.LooseLeafVolume
Volumes = Parser.LooseLeafVolume
};
var expected = new ParserInfo()
@ -42,7 +42,7 @@ public class ParserInfoTests
IsSpecial = false,
Series = "darker than black",
Title = "darker than black",
Volumes = API.Services.Tasks.Scanner.Parser.Parser.LooseLeafVolume
Volumes = Parser.LooseLeafVolume
};
p1.Merge(p2);
@ -62,12 +62,12 @@ public class ParserInfoTests
IsSpecial = true,
Series = "darker than black",
Title = "darker than black",
Volumes = API.Services.Tasks.Scanner.Parser.Parser.LooseLeafVolume
Volumes = Parser.LooseLeafVolume
};
var p2 = new ParserInfo()
{
Chapters = API.Services.Tasks.Scanner.Parser.Parser.DefaultChapter,
Chapters = Parser.DefaultChapter,
Edition = "",
Format = MangaFormat.Archive,
FullFilePath = "/manga/darker than black.cbz",

View file

@ -44,6 +44,7 @@ public class ParsingTests
[InlineData("DEAD Tube Prologue", "DEAD Tube Prologue")]
[InlineData("DEAD Tube Prologue SP01", "DEAD Tube Prologue")]
[InlineData("DEAD_Tube_Prologue SP01", "DEAD Tube Prologue")]
[InlineData("SP01 1. DEAD Tube Prologue", "1. DEAD Tube Prologue")]
public void CleanSpecialTitleTest(string input, string expected)
{
Assert.Equal(expected, CleanSpecialTitle(input));
@ -251,6 +252,7 @@ public class ParsingTests
[InlineData("ch1/backcover.png", false)]
[InlineData("backcover.png", false)]
[InlineData("back_cover.png", false)]
[InlineData("LD Blacklands #1 35 (back cover).png", false)]
public void IsCoverImageTest(string inputPath, bool expected)
{
Assert.Equal(expected, IsCoverImage(inputPath));