MangaGezgini: Fix chapter name and date format (#2811)
* Fix chapter name * Fix date format * Update icons * Add useLoadMoreRequest and useNewChapterEndpoint settings
@ -3,7 +3,7 @@ ext {
|
||||
extClass = '.MangaGezgini'
|
||||
themePkg = 'madara'
|
||||
baseUrl = 'https://mangagezgini.com'
|
||||
overrideVersionCode = 0
|
||||
overrideVersionCode = 1
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 54 KiB |
@ -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
|
||||
}
|
||||
|