MangaGezgini: Fix chapter name and date format (#2811)

* Fix chapter name

* Fix date format

* Update icons

* Add useLoadMoreRequest and useNewChapterEndpoint settings
This commit is contained in:
Chopper 2024-05-04 14:31:02 -03:00 committed by Draff
parent d2bc63650b
commit 1e46d2fdc7
7 changed files with 4 additions and 19 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.MangaGezgini'
themePkg = 'madara'
baseUrl = 'https://mangagezgini.com'
overrideVersionCode = 0
overrideVersionCode = 1
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.7 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 54 KiB

View File

@ -1,8 +1,6 @@
package eu.kanade.tachiyomi.extension.tr.mangagezgini
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.Locale
@ -10,21 +8,8 @@ class MangaGezgini : Madara(
"MangaGezgini",
"https://mangagezgini.com",
"tr",
SimpleDateFormat("dd/MM/yyy", Locale("tr")),
SimpleDateFormat("MMMM dd, yyyy", Locale("tr")),
) {
override fun chapterFromElement(element: Element): SChapter {
val chapter = SChapter.create()
with(element) {
selectFirst(chapterUrlSelector)!!.let { urlElement ->
chapter.url = urlElement.attr("abs:href").let {
it.substringBefore("?style=paged") + if (!it.endsWith(chapterUrlSuffix)) chapterUrlSuffix else ""
}
chapter.name = element.select("li.wp-manga-chapter.has-thumb a").text()
}
chapter.date_upload = selectFirst("img:not(.thumb)")?.attr("alt")?.let { parseRelativeDate(it) }
?: selectFirst("span a")?.attr("title")?.let { parseRelativeDate(it) }
?: parseChapterDate(selectFirst(chapterDateSelector())?.text())
}
return chapter
}
override val useLoadMoreRequest = LoadMoreStrategy.Never
override val useNewChapterEndpoint = true
}