Split WPMangaReader (#5754)

This commit is contained in:
Riztard Lanthorn 2021-02-11 05:59:43 +07:00 committed by GitHub
parent 791087ab9f
commit b4afa0323e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
32 changed files with 49 additions and 38 deletions

View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View File

@ -0,0 +1,8 @@
package eu.kanade.tachiyomi.extension.id.komikmama
import eu.kanade.tachiyomi.multisrc.wpmangareader.WPMangaReader
import java.text.SimpleDateFormat
import java.util.Locale
class KomikMama : WPMangaReader("KomikMama", "https://komikmama.net", "id",
dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale("id")))

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

View File

@ -0,0 +1,5 @@
package eu.kanade.tachiyomi.extension.id.ngomik
import eu.kanade.tachiyomi.multisrc.wpmangareader.WPMangaReader
class Ngomik : WPMangaReader("Ngomik", "https://ngomik.net", "id", "/all-komik")

View File

@ -0,0 +1,8 @@
package eu.kanade.tachiyomi.extension.tr.turktoon
import eu.kanade.tachiyomi.multisrc.wpmangareader.WPMangaReader
import java.text.SimpleDateFormat
import java.util.Locale
class TurkToon : WPMangaReader("TurkToon", "https://turktoon.com", "tr",
dateFormat = SimpleDateFormat("MMM d, yyyy", Locale("tr")))

View File

@ -1,4 +1,4 @@
package eu.kanade.tachiyomi.extension.all.wpmangareader
package eu.kanade.tachiyomi.multisrc.wpmangareader
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.model.Filter

View File

@ -0,0 +1,27 @@
package eu.kanade.tachiyomi.multisrc.wpmangareader
import eu.kanade.tachiyomi.multisrc.ThemeSourceData.SingleLang
import eu.kanade.tachiyomi.multisrc.ThemeSourceGenerator
class WPMangaReaderGenerator : ThemeSourceGenerator {
override val themePkg = "wpmangareader"
override val themeClass = "WPMangaReader"
override val baseVersionCode: Int = 1
override val sources = listOf(
SingleLang("KomikMama", "https://komikmama.net", "id"),
SingleLang("MangaKita", "https://mangakita.net", "id"),
SingleLang("Ngomik", "https://ngomik.net", "id"),
SingleLang("TurkToon", "https://turktoon.com", "tr"),
)
companion object {
@JvmStatic
fun main(args: Array<String>) {
WPMangaReaderGenerator().createAll()
}
}
}

View File

@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="eu.kanade.tachiyomi.extension" />

View File

@ -1,12 +0,0 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
ext {
extName = 'WP MangaReader (multiple sources)'
pkgNameSuffix = 'all.wpmangareader'
extClass = '.WPMangaReaderFactory'
extVersionCode = 5
libVersion = '1.2'
}
apply from: "$rootDir/common.gradle"

View File

@ -1,23 +0,0 @@
package eu.kanade.tachiyomi.extension.all.wpmangareader
import eu.kanade.tachiyomi.source.Source
import eu.kanade.tachiyomi.source.SourceFactory
import java.text.SimpleDateFormat
import java.util.Locale
class WPMangaReaderFactory : SourceFactory {
override fun createSources(): List<Source> = listOf(
KomikMama(),
MangaKita(),
Ngomik(),
TurkToon(),
)
}
class TurkToon : WPMangaReader("TurkToon", "https://turktoon.com", "tr", "/manga", SimpleDateFormat("MMM d, yyyy", Locale("tr")))
class KomikMama : WPMangaReader("KomikMama", "https://komikmama.net", "id", "/manga", SimpleDateFormat("MMMM dd, yyyy", Locale.forLanguageTag("id")))
class MangaKita : WPMangaReader("MangaKita", "https://mangakita.net", "id")
class Ngomik : WPMangaReader("Ngomik", "https://ngomik.net", "id", "/all-komik")