Fix Bakkin chapter URLs (#8394)

This commit is contained in:
ObserverOfTime 2021-08-04 14:15:24 +03:00 committed by GitHub
parent 633ebe7e7c
commit 5e4f67da3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@ class BakkinGenerator : ThemeSourceGenerator {
override val themeClass = "BakkinReaderX"
override val baseVersionCode = 2
override val baseVersionCode = 3
override val sources = listOf(
SingleLang("Bakkin", "https://bakkin.moe/reader/", "en"),

View File

@ -9,9 +9,8 @@ internal data class Series(
val thumb: String?,
val volumes: List<Volume>
) : Iterable<Chapter> {
override fun iterator() = volumes.flatMap {
// Prepend the volume name to the chapter name
it.map { ch -> ch.copy(name = "$it - $ch") }
override fun iterator() = volumes.flatMap { vol ->
vol.map { it.copy("$dir/${vol.dir}/${it.dir}", "$vol - $it") }
}.iterator()
val cover: String

View File

@ -118,7 +118,8 @@ abstract class BakkinReaderX(
override fun setupPreferenceScreen(screen: PreferenceScreen) {
ListPreference(screen.context).apply {
key = "quality"
summary = "Image quality: %s"
summary = "%s"
title = "Image quality"
entries = arrayOf("Original", "Compressed")
entryValues = arrayOf("?fullsize", "")
setDefaultValue("")