Fixes before Release (#3172)
This commit is contained in:
parent
844d7c7e4b
commit
d6ee97816f
13 changed files with 208 additions and 52 deletions
|
@ -478,9 +478,6 @@ public class SeriesService : ISeriesService
|
|||
|
||||
foreach (var chapter in chapters)
|
||||
{
|
||||
// if (!string.IsNullOrEmpty(chapter.TitleName)) chapter.Title = chapter.TitleName;
|
||||
// else chapter.Title = await FormatChapterTitle(userId, chapter, libraryType);
|
||||
|
||||
chapter.Title = await FormatChapterTitle(userId, chapter, libraryType);
|
||||
|
||||
if (!chapter.IsSpecial) continue;
|
||||
|
@ -536,7 +533,12 @@ public class SeriesService : ISeriesService
|
|||
{
|
||||
var firstChapter = volume.Chapters.First();
|
||||
// On Books, skip volumes that are specials, since these will be shown
|
||||
if (firstChapter.IsSpecial) return false;
|
||||
// if (firstChapter.IsSpecial)
|
||||
// {
|
||||
// // Some books can be SP marker and also position of 0, this will trick Kavita into rendering it as part of a non-special volume
|
||||
// // We need to rename the entity so that it renders out correctly
|
||||
// return false;
|
||||
// }
|
||||
if (string.IsNullOrEmpty(firstChapter.TitleName))
|
||||
{
|
||||
if (firstChapter.Range.Equals(Parser.LooseLeafVolume)) return false;
|
||||
|
@ -550,7 +552,7 @@ public class SeriesService : ISeriesService
|
|||
volume.Name = firstChapter.TitleName;
|
||||
}
|
||||
|
||||
return true;
|
||||
return !firstChapter.IsSpecial;
|
||||
}
|
||||
|
||||
volume.Name = $"{volumeLabel.Trim()} {volume.Name}".Trim();
|
||||
|
|
|
@ -13,7 +13,7 @@ public class BookParser(IDirectoryService directoryService, IBookService bookSer
|
|||
info.ComicInfo = comicInfo;
|
||||
|
||||
// We need a special piece of code to override the Series IF there is a special marker in the filename for epub files
|
||||
if (info.IsSpecial && info.Volumes == "0" && info.ComicInfo.Series != info.Series)
|
||||
if (info.IsSpecial && info.Volumes is "0" or "0.0" && info.ComicInfo.Series != info.Series)
|
||||
{
|
||||
info.Series = info.ComicInfo.Series;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue