mirror of
https://github.com/gotson/komga.git
synced 2026-05-09 05:10:19 +02:00
parent
e1741c34fa
commit
a6c19f6eee
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ class EpubMetadataProvider(
|
||||||
override fun getSeriesMetadataFromBook(book: BookWithMedia): SeriesMetadataPatch? {
|
override fun getSeriesMetadataFromBook(book: BookWithMedia): SeriesMetadataPatch? {
|
||||||
if (book.media.mediaType != "application/epub+zip") return null
|
if (book.media.mediaType != "application/epub+zip") return null
|
||||||
epubExtractor.getPackageFile(book.book.path)?.let { packageFile ->
|
epubExtractor.getPackageFile(book.book.path)?.let { packageFile ->
|
||||||
val opf = Jsoup.parse(packageFile)
|
val opf = Jsoup.parse(packageFile, "", Parser.xmlParser())
|
||||||
|
|
||||||
val series = (
|
val series = (
|
||||||
opf.selectFirst("metadata > meta[property=belongs-to-collection]")
|
opf.selectFirst("metadata > meta[property=belongs-to-collection]")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue