mirror of
https://github.com/gotson/komga.git
synced 2025-12-20 23:45:11 +01:00
fix: retrieve series from epub correctly
it would not work with namespaced elements generated by Calibre part of #556
This commit is contained in:
parent
52d81ef1d7
commit
fbd8655c51
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ class EpubMetadataProvider(
|
|||
epubExtractor.getPackageFile(book.book.path)?.let { packageFile ->
|
||||
val opf = Jsoup.parse(packageFile)
|
||||
|
||||
val series = opf.selectFirst("metadata > meta[property=belongs-to-collection]")?.text()?.ifBlank { null }
|
||||
val series = opf.selectFirst("metadata > *|meta[property=belongs-to-collection]")?.text()?.ifBlank { null }
|
||||
val publisher = opf.selectFirst("metadata > dc|publisher")?.text()?.ifBlank { null }
|
||||
val language = opf.selectFirst("metadata > dc|language")?.text()?.ifBlank { null }
|
||||
val genre = opf.selectFirst("metadata > dc|subject")?.text()?.ifBlank { null }
|
||||
|
|
|
|||
Loading…
Reference in a new issue