Add source MangaGezgini "tr" (#1168)

* Add source MangaGezgini "tr"

* fix  problem chapter name

* Update MangaGezgini.kt

* Update MangaGezgini.kt
This commit is contained in:
mohamedotaku 2024-02-11 09:29:59 +01:00 committed by Draff
parent 731145443b
commit 591c65a534
7 changed files with 31 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -0,0 +1,30 @@
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
class MangaGezgini : Madara(
"MangaGezgini",
"https://mangagezgini.com",
"tr",
SimpleDateFormat("dd/MM/yyy", Locale("tr")),
) {
override fun chapterFromElement(element: Element): SChapter {
val chapter = SChapter.create()
with(element) {
select(chapterUrlSelector).first()?.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 = select("img:not(.thumb)").firstOrNull()?.attr("alt")?.let { parseRelativeDate(it) }
?: select("span a").firstOrNull()?.attr("title")?.let { parseRelativeDate(it) }
?: parseChapterDate(select(chapterDateSelector()).firstOrNull()?.text())
}
return chapter
}
}

View File

@ -233,6 +233,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Mangaforfree.com", "https://mangaforfree.com", "en", isNsfw = true, className = "Mangaforfreecom", overrideVersionCode = 1),
SingleLang("MangaFoxFull", "https://mangafoxfull.com", "en"),
SingleLang("MangaFreak.online", "https://mangafreak.online", "en", className = "MangaFreakOnline"),
SingleLang("MangaGezgini", "https://mangagezgini.com", "tr"),
SingleLang("MangaGG", "https://mangagg.com", "en", overrideVersionCode = 2),
SingleLang("MangaHub.fr", "https://mangahub.fr", "fr", isNsfw = true, className = "MangaHubFr", overrideVersionCode = 2),
SingleLang("Mangakik", "https://mangakik.org", "en", overrideVersionCode = 2),