This commit is contained in:
Chopper 2024-07-18 07:51:33 -03:00 committed by Draff
parent e5815aaf29
commit 4206c918bf
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
7 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,9 @@
ext {
extName = 'Utoon'
extClass = '.Utoon'
themePkg = 'madara'
baseUrl = 'https://utoon.net'
overrideVersionCode = 0
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@ -0,0 +1,29 @@
package eu.kanade.tachiyomi.extension.en.utoon
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.source.model.SChapter
import org.jsoup.nodes.Element
import java.text.SimpleDateFormat
import java.util.Calendar
import java.util.Locale
class Utoon : Madara(
"Utoon",
"https://utoon.net",
"en",
SimpleDateFormat("dd MMM yyyy", Locale.US),
) {
override val useNewChapterEndpoint = true
override val useLoadMoreRequest = LoadMoreStrategy.Always
override val chapterUrlSelector = "div > a"
override fun chapterFromElement(element: Element): SChapter {
return super.chapterFromElement(element).apply {
val currentYear = Calendar.getInstance().get(Calendar.YEAR)
date_upload = element.selectFirst("span a")?.attr("title")?.let { parseRelativeDate(it) }
?: parseChapterDate("${element.selectFirst(chapterDateSelector())?.text()} $currentYear")
}
}
}