Add Zanman Manga (#2830)

This commit is contained in:
Vetle Ledaal 2024-05-04 17:42:01 +00:00 committed by Draff
parent 313b43f78c
commit 5249c98336
7 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,10 @@
ext {
extName = 'Zanman Manga'
extClass = '.ZanmanManga'
themePkg = 'madara'
baseUrl = 'https://zamanmanga.com'
overrideVersionCode = 0
isNsfw = true
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

View File

@ -0,0 +1,25 @@
package eu.kanade.tachiyomi.extension.tr.zanmanmanga
import eu.kanade.tachiyomi.multisrc.madara.Madara
import org.jsoup.nodes.Element
import java.text.SimpleDateFormat
import java.util.Locale
class ZanmanManga : Madara(
"Zanman Manga",
"https://zamanmanga.com",
"tr",
dateFormat = SimpleDateFormat("d MMMM yyyy", Locale("tr")),
) {
override val mangaDetailsSelectorAuthor = "div.manga-authors > a"
override val mangaDetailsSelectorDescription = "div.manga-summary"
override val mangaDetailsSelectorThumbnail = "head meta[property='og:image']" // Same as browse
override val useLoadMoreRequest = LoadMoreStrategy.Never
override val useNewChapterEndpoint = true
override fun imageFromElement(element: Element): String? {
return super.imageFromElement(element)?.takeIf { it.isNotEmpty() }
?: element.attr("content") // Thumbnail from <head>
}
}