Misc Fixes (#839)
* Fixed a case where chapter was being parsed incorrectly when the series title ends in a number. * Updated Kavita to support Tome/T notation found in French comics * Added support for identifying European specials and expanded support for cleaning some tags used in European comics. During cleaning, if series starts with - or comma, remove it. * Fixed an issue where add to collection for a single series wasn't calling the bulk action handler * Fixed a NPE on AgeRating conversion. Fixed a bug where when looking for cover image, file extensions was throwing off sort code. * Refactored Natural Sort ordering to better follow how Windows behaves. This is a departure from how the original code executes. * GetCachedPagePath now uses natural sorting to pick the images for reading in a more correct order. * Updated parser to handle a case where there was more than one space as a separator
This commit is contained in:
parent
b3e4a7caa6
commit
3b90ef96b5
19 changed files with 146 additions and 47 deletions
|
|
@ -237,13 +237,6 @@ public class MetadataService : IMetadataService
|
|||
if (comicInfo == null) return;
|
||||
|
||||
|
||||
// Summary Info
|
||||
if (!string.IsNullOrEmpty(comicInfo.Summary))
|
||||
{
|
||||
// PERF: I can move this to the bottom as I have a comicInfo selection, save me an extra read
|
||||
series.Metadata.Summary = comicInfo.Summary;
|
||||
}
|
||||
|
||||
foreach (var chapter in series.Volumes.SelectMany(volume => volume.Chapters))
|
||||
{
|
||||
PersonHelper.UpdatePeople(allPeople, chapter.People.Where(p => p.Role == PersonRole.Writer).Select(p => p.Name), PersonRole.Writer,
|
||||
|
|
@ -282,6 +275,12 @@ public class MetadataService : IMetadataService
|
|||
.ToList();
|
||||
|
||||
//var firstComicInfo = comicInfos.First(i => i.)
|
||||
// Summary Info
|
||||
if (!string.IsNullOrEmpty(comicInfo.Summary))
|
||||
{
|
||||
// PERF: I can move this to the bottom as I have a comicInfo selection, save me an extra read
|
||||
series.Metadata.Summary = comicInfo.Summary;
|
||||
}
|
||||
|
||||
// Set the AgeRating as highest in all the comicInfos
|
||||
series.Metadata.AgeRating = comicInfos.Max(i => ComicInfo.ConvertAgeRatingToEnum(comicInfo.AgeRating));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue