Zbulu split (#6387)
* Create Zbulu.kt * Create ZbuluGenerator.kt * Added default icon * De;eted single source files
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
@ -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.source.model.Filter
|
||||
|
@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit
|
|||
abstract class Zbulu(
|
||||
override val name: String,
|
||||
override val baseUrl: String,
|
||||
override val lang: String = "en"
|
||||
override val lang: String
|
||||
) : ParsedHttpSource() {
|
||||
|
||||
override val supportsLatest = true
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest package="eu.kanade.tachiyomi.extension" />
|
|
@ -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"
|
|
@ -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="))
|
||||
}
|
||||
}
|
||||
}
|