Initial commit
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 4.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 101 KiB |
@@ -0,0 +1,25 @@
|
||||
package eu.kanade.tachiyomi.extension.en.readallcomicscom
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.readallcomics.ReadAllComics
|
||||
import eu.kanade.tachiyomi.source.model.SManga
|
||||
import org.jsoup.nodes.Element
|
||||
|
||||
class ReadAllComicsCom : ReadAllComics("ReadAllComics", "https://readallcomics.com", "en") {
|
||||
|
||||
override fun nullablePopularManga(element: Element): SManga? {
|
||||
return super.nullablePopularManga(element)?.apply {
|
||||
title = title.let {
|
||||
titleRegex.find(it)?.value?.trim()
|
||||
?.removeSuffix("v")?.trim()
|
||||
?.substringBeforeLast("vol")
|
||||
?: it
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun pageListSelector() = "body img:not(body div[id=\"logo\"] img)"
|
||||
|
||||
companion object {
|
||||
private val titleRegex = Regex("""^([a-zA-Z_.\s\-–:]*)""")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user