Initial commit

This commit is contained in:
FourTOne5
2024-01-09 04:12:39 +06:00
commit 600c345dfe
8593 changed files with 150590 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 KiB

View File

@@ -0,0 +1,33 @@
package eu.kanade.tachiyomi.extension.th.cattranslator
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.source.model.SManga
import org.jsoup.nodes.Element
class CatTranslator : Madara(
"CAT-translator",
"https://cats-translator.com/manga",
"th",
) {
private fun parseMangaFromElement(element: Element, isSearch: Boolean): SManga {
val manga = SManga.create()
with(element) {
select(if (isSearch) "div.post-title a" else popularMangaUrlSelector).first()?.let {
manga.setUrlWithoutDomain(it.attr("abs:href"))
manga.url = manga.url.removePrefix("/manga")
manga.title = it.ownText()
}
select("img").first()?.let {
manga.thumbnail_url = imageFromElement(it)
}
}
return manga
}
override fun popularMangaFromElement(element: Element) = parseMangaFromElement(element, false)
override fun searchMangaFromElement(element: Element) = parseMangaFromElement(element, true)
}