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
|
|
@ -1,3 +1,4 @@
|
|||
using API.Entities.Enums;
|
||||
using Xunit;
|
||||
using static API.Parser.Parser;
|
||||
|
||||
|
|
@ -5,7 +6,14 @@ namespace API.Tests.Parser
|
|||
{
|
||||
public class ParserTests
|
||||
{
|
||||
|
||||
[Theory]
|
||||
[InlineData("Joe Shmo, Green Blue", "Joe Shmo, Green Blue")]
|
||||
[InlineData("Shmo, Joe", "Shmo, Joe")]
|
||||
[InlineData(" Joe Shmo ", "Joe Shmo")]
|
||||
public void CleanAuthorTest(string input, string expected)
|
||||
{
|
||||
Assert.Equal(expected, CleanAuthor(input));
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("Beastars - SP01", true)]
|
||||
|
|
@ -140,14 +148,6 @@ namespace API.Tests.Parser
|
|||
Assert.Equal(expected, IsImage(filename));
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("Joe Smo", "Joe Smo")]
|
||||
[InlineData("Smo, Joe", "Joe Smo")]
|
||||
public void CleanAuthorTest(string author, string expected)
|
||||
{
|
||||
Assert.Equal(expected, CleanAuthor(expected));
|
||||
}
|
||||
|
||||
|
||||
|
||||
[Theory]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue