diff --git a/multisrc/overrides/mangathemesia/readgojo/res/mipmap-hdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/readgojo/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..f121271ad Binary files /dev/null and b/multisrc/overrides/mangathemesia/readgojo/res/mipmap-hdpi/ic_launcher.png differ diff --git a/multisrc/overrides/mangathemesia/readgojo/res/mipmap-mdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/readgojo/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..ee558c918 Binary files /dev/null and b/multisrc/overrides/mangathemesia/readgojo/res/mipmap-mdpi/ic_launcher.png differ diff --git a/multisrc/overrides/mangathemesia/readgojo/res/mipmap-xhdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/readgojo/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..d6ae4b6b6 Binary files /dev/null and b/multisrc/overrides/mangathemesia/readgojo/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/multisrc/overrides/mangathemesia/readgojo/res/mipmap-xxhdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/readgojo/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..2307c1284 Binary files /dev/null and b/multisrc/overrides/mangathemesia/readgojo/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/multisrc/overrides/mangathemesia/readgojo/res/mipmap-xxxhdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/readgojo/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..aac079f9c Binary files /dev/null and b/multisrc/overrides/mangathemesia/readgojo/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/multisrc/overrides/mangathemesia/readgojo/res/web_hi_res_512.png b/multisrc/overrides/mangathemesia/readgojo/res/web_hi_res_512.png new file mode 100644 index 000000000..d652f41b6 Binary files /dev/null and b/multisrc/overrides/mangathemesia/readgojo/res/web_hi_res_512.png differ diff --git a/multisrc/overrides/mangathemesia/readgojo/src/ReadGojo.kt b/multisrc/overrides/mangathemesia/readgojo/src/ReadGojo.kt new file mode 100644 index 000000000..8d395550f --- /dev/null +++ b/multisrc/overrides/mangathemesia/readgojo/src/ReadGojo.kt @@ -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 + } + } +} diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt index 3c91e0b6c..7939d5789 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt @@ -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),