Add Manga Oku (#2639)

This commit is contained in:
Vetle Ledaal 2024-04-29 10:21:38 +00:00 committed by Draff
parent f191400e7d
commit 5a7386cd6c
7 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,10 @@
ext {
extName = 'Manga Oku'
extClass = '.MangaOku'
themePkg = 'madara'
baseUrl = 'https://mangaoku.info'
overrideVersionCode = 0
isNsfw = false
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

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