|
|
|
@ -62,7 +62,7 @@ class LocalMangaParser(private val uri: Uri) {
|
|
|
|
mangaInfo.copy(
|
|
|
|
mangaInfo.copy(
|
|
|
|
source = LocalMangaSource,
|
|
|
|
source = LocalMangaSource,
|
|
|
|
url = rootFile.toUri().toString(),
|
|
|
|
url = rootFile.toUri().toString(),
|
|
|
|
coverUrl = coverEntry?.let { uri.child(it, resolve = true).toString() }.orEmpty(),
|
|
|
|
coverUrl = coverEntry?.let { uri.child(it, resolve = true).toString() },
|
|
|
|
largeCoverUrl = null,
|
|
|
|
largeCoverUrl = null,
|
|
|
|
chapters = if (withDetails) {
|
|
|
|
chapters = if (withDetails) {
|
|
|
|
mangaInfo.chapters?.mapNotNull { c ->
|
|
|
|
mangaInfo.chapters?.mapNotNull { c ->
|
|
|
|
@ -92,9 +92,7 @@ class LocalMangaParser(private val uri: Uri) {
|
|
|
|
url = rootFile.toUri().toString(),
|
|
|
|
url = rootFile.toUri().toString(),
|
|
|
|
publicUrl = rootFile.toUri().toString(),
|
|
|
|
publicUrl = rootFile.toUri().toString(),
|
|
|
|
source = LocalMangaSource,
|
|
|
|
source = LocalMangaSource,
|
|
|
|
coverUrl = coverEntry?.let {
|
|
|
|
coverUrl = coverEntry?.let { uri.child(it, resolve = true).toString() },
|
|
|
|
uri.child(it, resolve = true).toString()
|
|
|
|
|
|
|
|
}.orEmpty(),
|
|
|
|
|
|
|
|
chapters = if (withDetails) {
|
|
|
|
chapters = if (withDetails) {
|
|
|
|
val chapters = fileSystem.listRecursively(rootPath)
|
|
|
|
val chapters = fileSystem.listRecursively(rootPath)
|
|
|
|
.mapNotNullTo(HashSet()) { path ->
|
|
|
|
.mapNotNullTo(HashSet()) { path ->
|
|
|
|
|