ReadM - update domain (#1073)

This commit is contained in:
Mike 2024-02-06 22:59:03 -05:00 committed by Draff
parent 8e610e1ea9
commit fdd2c5c6d1
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'ReadM'
extClass = '.ReadM'
extVersionCode = 7
extVersionCode = 8
}
apply from: "$rootDir/common.gradle"

View File

@ -26,7 +26,7 @@ class ReadM : ParsedHttpSource() {
// Info
override val name: String = "ReadM"
override val baseUrl: String = "https://readm.org"
override val baseUrl: String = "https://readm.today"
override val lang: String = "en"
override val supportsLatest: Boolean = true
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
@ -102,7 +102,7 @@ class ReadM : ParsedHttpSource() {
status = parseStatus(document.select("div.series-genres .series-status").firstOrNull()?.ownText())
}
protected fun parseStatus(element: String?): Int = when {
private fun parseStatus(element: String?): Int = when {
element == null -> SManga.UNKNOWN
listOf("ongoing").any { it.contains(element, ignoreCase = true) } -> SManga.ONGOING
listOf("completed").any { it.contains(element, ignoreCase = true) } -> SManga.COMPLETED