Skip to content

Commit 27043a9

Browse files
committed
chore(Manga Livre): Rename, update source domain
1 parent 3790a2a commit 27043a9

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

  • src/main/kotlin/org/dokiteam/doki/parsers/site/madara/pt

src/main/kotlin/org/dokiteam/doki/parsers/site/madara/pt/Neoxscans.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ import org.dokiteam.doki.parsers.site.madara.MadaraParser
99
import org.dokiteam.doki.parsers.util.*
1010
import java.text.SimpleDateFormat
1111

12-
@MangaSourceParser("NEOX_SCANS", "NeoxScans", "pt")
12+
@MangaSourceParser("NEOX_SCANS", "Manga Livre", "pt")
1313
internal class Neoxscans(context: MangaLoaderContext) :
14-
MadaraParser(context, MangaParserSource.NEOX_SCANS, "mangalivre.net", 18) {
14+
MadaraParser(context, MangaParserSource.NEOX_SCANS, "mangalivre.tv", 18) {
15+
16+
override val withoutAjax = false
1517
override val datePattern = "dd/MM/yyyy"
1618

1719
override suspend fun loadChapters(mangaUrl: String, document: Document): List<MangaChapter> {
18-
val url = mangaUrl.toAbsoluteUrl(domain).removeSuffix('/') + "/ajax/chapters/"
20+
val url = mangaUrl.toAbsoluteUrl(domain).removeSuffix('/') + "/ajax/chapters?t=1"
1921
val doc = webClient.httpPost(url, emptyMap()).parseHtml()
2022
val dateFormat = SimpleDateFormat(datePattern, sourceLocale)
2123
return doc.select(selectChapter).mapChapters(reversed = true) { i, li ->

0 commit comments

Comments
 (0)