Epub 3.2 Grouping issue (#1823)
* Added font swapping and removed some unneeded css * Fixed a bug where epub 3 tags weren't being applied for grouping
This commit is contained in:
parent
9b80eba53e
commit
9103228ccc
7 changed files with 27 additions and 35 deletions
|
@ -421,6 +421,7 @@ public class BookService : IBookService
|
|||
// Parse tags not exposed via Library
|
||||
foreach (var metadataItem in epubBook.Schema.Package.Metadata.MetaItems)
|
||||
{
|
||||
// EPUB 2 and 3
|
||||
switch (metadataItem.Name)
|
||||
{
|
||||
case "calibre:rating":
|
||||
|
@ -437,6 +438,21 @@ public class BookService : IBookService
|
|||
info.Volume = metadataItem.Content;
|
||||
break;
|
||||
}
|
||||
|
||||
// EPUB 3.2+ only
|
||||
switch (metadataItem.Property)
|
||||
{
|
||||
case "group-position":
|
||||
info.Volume = metadataItem.Content;
|
||||
break;
|
||||
case "belongs-to-collection":
|
||||
info.Series = metadataItem.Content;
|
||||
info.SeriesSort = metadataItem.Content;
|
||||
break;
|
||||
case "collection-type":
|
||||
// These look to be genres from https://manual.calibre-ebook.com/sub_groups.html or can be "series"
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
var hasVolumeInSeries = !Tasks.Scanner.Parser.Parser.ParseVolume(info.Title)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue