Metadata Bugfixes (#1511)
* Fix XML deserialization of empty elements to integers * Fix assumption that environment uses US time format * Use series name as SeriesSort in epub * Address some PR comments * Add partial Equals(0 implementation to ComicInfo * Update ComicInfo unittest. Revert previous version
This commit is contained in:
parent
0a6e64d767
commit
a1c3f43656
5 changed files with 42 additions and 22 deletions
|
@ -23,6 +23,7 @@ public class ComicInfo
|
|||
/// <summary>
|
||||
/// The total number of items in the series.
|
||||
/// </summary>
|
||||
[System.ComponentModel.DefaultValueAttribute(0)]
|
||||
public int Count { get; set; } = 0;
|
||||
public string Volume { get; set; } = string.Empty;
|
||||
public string Notes { get; set; } = string.Empty;
|
||||
|
@ -37,8 +38,11 @@ public class ComicInfo
|
|||
/// This is the link to where the data was scraped from
|
||||
/// </summary>
|
||||
public string Web { get; set; } = string.Empty;
|
||||
[System.ComponentModel.DefaultValueAttribute(0)]
|
||||
public int Day { get; set; } = 0;
|
||||
[System.ComponentModel.DefaultValueAttribute(0)]
|
||||
public int Month { get; set; } = 0;
|
||||
[System.ComponentModel.DefaultValueAttribute(0)]
|
||||
public int Year { get; set; } = 0;
|
||||
|
||||
|
||||
|
@ -54,6 +58,7 @@ public class ComicInfo
|
|||
public string StoryArc { get; set; } = string.Empty;
|
||||
public string SeriesGroup { get; set; } = string.Empty;
|
||||
public string AlternateNumber { get; set; } = string.Empty;
|
||||
[System.ComponentModel.DefaultValueAttribute(0)]
|
||||
public int AlternateCount { get; set; } = 0;
|
||||
public string AlternateSeries { get; set; } = string.Empty;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue