fix(epub): series title not always parsed properly

closes #556
This commit is contained in:
Gauthier Roebroeck 2021-06-23 09:12:59 +08:00
parent e1741c34fa
commit a6c19f6eee

View file

@ -87,7 +87,7 @@ class EpubMetadataProvider(
override fun getSeriesMetadataFromBook(book: BookWithMedia): SeriesMetadataPatch? {
if (book.media.mediaType != "application/epub+zip") return null
epubExtractor.getPackageFile(book.book.path)?.let { packageFile ->
val opf = Jsoup.parse(packageFile)
val opf = Jsoup.parse(packageFile, "", Parser.xmlParser())
val series = (
opf.selectFirst("metadata > meta[property=belongs-to-collection]")