Add Manga Oku (#2639)
This commit is contained in:
parent
f191400e7d
commit
5a7386cd6c
10
src/tr/mangaoku/build.gradle
Normal file
10
src/tr/mangaoku/build.gradle
Normal 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"
|
BIN
src/tr/mangaoku/res/mipmap-hdpi/ic_launcher.png
Normal file
BIN
src/tr/mangaoku/res/mipmap-hdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.3 KiB |
BIN
src/tr/mangaoku/res/mipmap-mdpi/ic_launcher.png
Normal file
BIN
src/tr/mangaoku/res/mipmap-mdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.1 KiB |
BIN
src/tr/mangaoku/res/mipmap-xhdpi/ic_launcher.png
Normal file
BIN
src/tr/mangaoku/res/mipmap-xhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
src/tr/mangaoku/res/mipmap-xxhdpi/ic_launcher.png
Normal file
BIN
src/tr/mangaoku/res/mipmap-xxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
BIN
src/tr/mangaoku/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
BIN
src/tr/mangaoku/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 49 KiB |
@ -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>
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user