ReadM - update domain (#1073)
This commit is contained in:
parent
8e610e1ea9
commit
fdd2c5c6d1
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'ReadM'
|
||||
extClass = '.ReadM'
|
||||
extVersionCode = 7
|
||||
extVersionCode = 8
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user