add ReadGojo (#16953)
* add ReadGojo * update icons * Remove commented out code Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com> --------- Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>
This commit is contained in:
parent
9de0f461b9
commit
34483c9afe
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 |
Binary file not shown.
After Width: | Height: | Size: 213 KiB |
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
|
@ -103,6 +103,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
|
|||
SingleLang("Raiki Scan", "https://raikiscan.com", "es"),
|
||||
SingleLang("Raven Scans", "https://ravenscans.com", "en", overrideVersionCode = 1),
|
||||
SingleLang("Rawkuma", "https://rawkuma.com/", "ja"),
|
||||
SingleLang("ReadGojo", "https://readgojo.com", "en"),
|
||||
SingleLang("Readkomik", "https://readkomik.com", "en", className = "ReadKomik", overrideVersionCode = 1),
|
||||
SingleLang("Ryukonesia", "https://ryukonesia.net", "id"),
|
||||
SingleLang("Sekaikomik", "https://www.sekaikomik.pro", "id", isNsfw = true, overrideVersionCode = 10),
|
||||
|
|
Loading…
Reference in New Issue