Initial commit
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 7.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 32 KiB |
BIN
multisrc/overrides/mangathemesia/readgojo/res/web_hi_res_512.png
Normal file
BIN
multisrc/overrides/mangathemesia/readgojo/res/web_hi_res_512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 213 KiB |
26
multisrc/overrides/mangathemesia/readgojo/src/ReadGojo.kt
Normal file
26
multisrc/overrides/mangathemesia/readgojo/src/ReadGojo.kt
Normal file
@@ -0,0 +1,26 @@
|
||||
package eu.kanade.tachiyomi.extension.en.readgojo
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
|
||||
import eu.kanade.tachiyomi.source.model.SChapter
|
||||
import org.jsoup.nodes.Element
|
||||
|
||||
class ReadGojo : MangaThemesia("ReadGojo", "https://readgojo.com", "en") {
|
||||
|
||||
override fun chapterFromElement(element: Element) = SChapter.create().apply {
|
||||
setUrlWithoutDomain(element.attr("href"))
|
||||
|
||||
name = element.selectFirst(".truncate p")?.text()!!.ifBlank { element.text() }
|
||||
date_upload = element.select("p").last()?.text()!!.split("Released ").last().parseChapterDate()
|
||||
}
|
||||
|
||||
override fun chapterListSelector() = "#chapterlist > a"
|
||||
|
||||
protected override fun String?.parseChapterDate(): Long {
|
||||
if (this == null) return 0
|
||||
return try {
|
||||
dateFormat.parse(this)?.time ?: 0
|
||||
} catch (_: Exception) {
|
||||
0
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user