Added DDHentai (#6876)

* Update NyaHentaiGenerator.kt

* Create DDHentaiFactory.kt

* Update NyaHentaiGenerator.kt

* Create DDHentaiAFactory.kt
This commit is contained in:
Johannes Joens 2021-05-07 23:31:20 +12:00 committed by GitHub
parent 80cea69e2c
commit 18268d4078
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,18 @@
package eu.kanade.tachiyomi.extension.all.ddhentai
import eu.kanade.tachiyomi.multisrc.nyahentai.NyaHentai
import eu.kanade.tachiyomi.source.Source
import eu.kanade.tachiyomi.source.SourceFactory
class DDHentaiFactory : SourceFactory {
override fun createSources(): List<Source> = listOf(
DDHentaiEN(),
DDHentaiJA(),
DDHentaiZH(),
DDHentaiALL(),
)
}
class DDHentaiEN : NyaHentai("DDHentai", "https://zh.ddhentai.com", "en")
class DDHentaiJA : NyaHentai("DDHentai", "https://zh.ddhentai.com", "ja")
class DDHentaiZH : NyaHentai("DDHentai", "https://zh.ddhentai.com", "zh")
class DDHentaiALL : NyaHentai("DDHentai", "https://zh.ddhentai.com", "all")

View File

@ -0,0 +1,18 @@
package eu.kanade.tachiyomi.extension.all.ddhentaia
import eu.kanade.tachiyomi.multisrc.nyahentai.NyaHentai
import eu.kanade.tachiyomi.source.Source
import eu.kanade.tachiyomi.source.SourceFactory
class DDHentaiAFactory : SourceFactory {
override fun createSources(): List<Source> = listOf(
DDHentaiAEN(),
DDHentaiAJA(),
DDHentaiAZH(),
DDHentaiAALL(),
)
}
class DDHentaiAEN : NyaHentai("DDHentai A", "https://zha.ddhentai.com", "en")
class DDHentaiAJA : NyaHentai("DDHentai A", "https://zha.ddhentai.com", "ja")
class DDHentaiAZH : NyaHentai("DDHentai A", "https://zha.ddhentai.com", "zh")
class DDHentaiAALL : NyaHentai("DDHentai A", "https://zha.ddhentai.com", "all")

View File

@ -26,6 +26,8 @@ class NyaHentaiGenerator : ThemeSourceGenerator {
MultiLang("BugHentai (en)", "https://en.bughentai.com", listOf("en","ja", "zh", "all"), isNsfw = true, className = "BugHentaiEnFactory", pkgName = "bughentaien"),
MultiLang("QQHentai", "https://zhb.qqhentai.com", listOf("en","ja", "zh", "all"), isNsfw = true, className = "QQHentaiFactory"),
MultiLang("FoxHentai", "https://ja.foxhentai.com", listOf("en","ja", "zh", "all"), isNsfw = true, className = "FoxHentaiFactory"),
MultiLang("DDHentai", "https://zh.ddhentai.com", listOf("en","ja", "zh", "all"), isNsfw = true, className = "DDHentaiFactory"),
MultiLang("DDHentai A", "https://zha.ddhentai.com", listOf("en","ja", "zh", "all"), isNsfw = true, className = "DDHentaiAFactory"),
)
companion object {