2021-08-30 12:05:25 +00:00
|
|
|
package eu.kanade.tachiyomi.extension.en.resetscans
|
|
|
|
|
|
|
|
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
2021-11-28 16:14:52 +00:00
|
|
|
import eu.kanade.tachiyomi.source.model.SChapter
|
|
|
|
import org.jsoup.nodes.Element
|
|
|
|
import java.util.Locale
|
2021-08-30 12:05:25 +00:00
|
|
|
|
2021-11-28 16:14:52 +00:00
|
|
|
class ResetScans : Madara("Reset Scans", "https://reset-scans.com", "en", java.text.SimpleDateFormat("dd/MM/yyyy", Locale.US)) {
|
2021-08-30 12:05:25 +00:00
|
|
|
override val useNewChapterEndpoint = true
|
2021-11-28 16:14:52 +00:00
|
|
|
|
|
|
|
override fun chapterFromElement(element: Element): SChapter {
|
|
|
|
val chapter = super.chapterFromElement(element)
|
|
|
|
|
|
|
|
with(element) {
|
|
|
|
chapter.date_upload = select("span.chapter-release-date i").firstOrNull()?.text().let { parseChapterDate(it) }
|
|
|
|
}
|
|
|
|
|
|
|
|
return chapter
|
|
|
|
}
|
2021-08-30 12:05:25 +00:00
|
|
|
}
|