Skip to content

Fix EPub metadata extraction when it contains repeated keys

Stefan Brüns requested to merge bruns/kfilemetadata:epub into master

Most metadata keys can be repeated, and just concatenating them gives wrong results, as most values are prefixed with with something like role (author, illustrator) or event type (publication/conversion date).

Fixes (incomplete) metadata extraction for most ebooks from Project Gutenberg.

Problematic (previously failing) cases are covered by unit tests now.

Merge request reports