Skip to content

Commit

Permalink
Add fallbacks to Epub 2 case for series and title's sorting key
Browse files Browse the repository at this point in the history
  • Loading branch information
qnga committed May 1, 2020
1 parent e9ba515 commit 776ea1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion streamer/parser/metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The primary `title` is defined using the following logic:

Parse it as a [localized string](#localized-strings) to compute a language map.

The sorting key of the publication is carried by the main title’s refine whose `property` is `file-as`.
The sorting key of the publication is carried by the main title’s refine whose `property` is `file-as`. If there is none, fallback to the EPUB 2.x case.

The subtitle is the value of the `<dc:title>` element whose `title-type` (refine) is `subtitle`. In case there are several, use the one with the lowest `display-seq` (refine).
Parse it as a [localized string](#localized-strings) to compute a language map.
Expand Down Expand Up @@ -271,6 +271,8 @@ The `identifier` string is the value of the refine whose `property` has the valu

The `position` of the publication is the value of the refine whose `property` has the value of `group-position`.

If there is no `series`, try to parse `calibre:series` as in the EPUB 2.x case.

## Progression Direction

The `readingProgression` of a publication is a key whose value is a string amongst the following:
Expand Down

0 comments on commit 776ea1d

Please sign in to comment.