Add Zanman Manga (#2830)
This commit is contained in:
parent
313b43f78c
commit
5249c98336
|
@ -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 |
|
@ -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>
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue