diff --git a/src/tr/zanmanmanga/build.gradle b/src/tr/zanmanmanga/build.gradle new file mode 100644 index 000000000..430174e4c --- /dev/null +++ b/src/tr/zanmanmanga/build.gradle @@ -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" diff --git a/src/tr/zanmanmanga/res/mipmap-hdpi/ic_launcher.png b/src/tr/zanmanmanga/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..f06500e2e Binary files /dev/null and b/src/tr/zanmanmanga/res/mipmap-hdpi/ic_launcher.png differ diff --git a/src/tr/zanmanmanga/res/mipmap-mdpi/ic_launcher.png b/src/tr/zanmanmanga/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..bc8a32993 Binary files /dev/null and b/src/tr/zanmanmanga/res/mipmap-mdpi/ic_launcher.png differ diff --git a/src/tr/zanmanmanga/res/mipmap-xhdpi/ic_launcher.png b/src/tr/zanmanmanga/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..8f6df89b1 Binary files /dev/null and b/src/tr/zanmanmanga/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/src/tr/zanmanmanga/res/mipmap-xxhdpi/ic_launcher.png b/src/tr/zanmanmanga/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..38d0b168d Binary files /dev/null and b/src/tr/zanmanmanga/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/src/tr/zanmanmanga/res/mipmap-xxxhdpi/ic_launcher.png b/src/tr/zanmanmanga/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..f5a6e1ade Binary files /dev/null and b/src/tr/zanmanmanga/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/src/tr/zanmanmanga/src/eu/kanade/tachiyomi/extension/tr/zanmanmanga/ZanmanManga.kt b/src/tr/zanmanmanga/src/eu/kanade/tachiyomi/extension/tr/zanmanmanga/ZanmanManga.kt new file mode 100644 index 000000000..23593cea9 --- /dev/null +++ b/src/tr/zanmanmanga/src/eu/kanade/tachiyomi/extension/tr/zanmanmanga/ZanmanManga.kt @@ -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 + } +}