Zbulu split (#6387)

* Create Zbulu.kt

* Create ZbuluGenerator.kt

* Added default icon

* De;eted single source files
This commit is contained in:
Johannes Joens 2021-04-03 01:52:17 +13:00 committed by GitHub
parent 0bb80223c1
commit 30be012210
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 29 additions and 42 deletions

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

View File

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -1,4 +1,4 @@
package eu.kanade.tachiyomi.extension.all.zbulu package eu.kanade.tachiyomi.multisrc.zbulu
import eu.kanade.tachiyomi.network.GET import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.model.Filter import eu.kanade.tachiyomi.source.model.Filter
@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit
abstract class Zbulu( abstract class Zbulu(
override val name: String, override val name: String,
override val baseUrl: String, override val baseUrl: String,
override val lang: String = "en" override val lang: String
) : ParsedHttpSource() { ) : ParsedHttpSource() {
override val supportsLatest = true override val supportsLatest = true

View File

@ -0,0 +1,27 @@
package eu.kanade.tachiyomi.multisrc.zbulu
import generator.ThemeSourceData.SingleLang
import generator.ThemeSourceGenerator
class ZbuluGenerator : ThemeSourceGenerator {
override val themePkg = "zbulu"
override val themeClass = "Zbulu"
override val baseVersionCode: Int = 1
override val sources = listOf(
SingleLang("HolyManga", "https://w15.holymanga.net", "en"),
SingleLang("My Toon", "https://mytoon.net", "en"),
SingleLang("Koo Manga", "https://ww9.koomanga.com", "en"),
SingleLang("Bulu Manga", "https://ww8.bulumanga.net", "en")
)
companion object {
@JvmStatic
fun main(args: Array<String>) {
ZbuluGenerator().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 = 'zBulu'
pkgNameSuffix = 'all.zbulu'
extClass = '.ZbuluFactory'
extVersionCode = 5
libVersion = '1.2'
}
apply from: "$rootDir/common.gradle"

View File

@ -1,26 +0,0 @@
package eu.kanade.tachiyomi.extension.all.zbulu
import eu.kanade.tachiyomi.source.Source
import eu.kanade.tachiyomi.source.SourceFactory
import eu.kanade.tachiyomi.source.model.Page
import org.jsoup.nodes.Document
class ZbuluFactory : SourceFactory {
override fun createSources(): List<Source> = listOf(
HolyManga(),
HeavenManga(),
KooManga(),
BuluManga(),
)
}
class HolyManga : Zbulu("HolyManga", "https://w15.holymanga.net")
class HeavenManga : Zbulu("HeavenManga", "https://heaventoon.com")
class KooManga : Zbulu("Koo Manga", "https://ww1.koomanga.com")
class BuluManga : Zbulu("Bulu Manga", "https://ww5.bulumanga.net") {
override fun pageListParse(document: Document): List<Page> {
return document.select("div.chapter-content img").mapIndexed { i, img ->
Page(i, "", img.attr("abs:src").substringAfter("url="))
}
}
}