split paprika (#5798)

This commit is contained in:
Aria Moradi 2021-02-12 07:27:38 -08:00 committed by GitHub
parent 20b5cdd88c
commit ca5663ff3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 61 additions and 42 deletions

View File

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

View File

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

View File

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

View File

@ -0,0 +1,27 @@
package eu.kanade.tachiyomi.multisrc.paprika
import eu.kanade.tachiyomi.multisrc.ThemeSourceData.SingleLang
import eu.kanade.tachiyomi.multisrc.ThemeSourceGenerator
import eu.kanade.tachiyomi.source.Source
import eu.kanade.tachiyomi.source.SourceFactory
class PaprikaAltGenerator : ThemeSourceGenerator {
override val themePkg = "paprika"
override val themeClass = "PaprikaAlt"
override val baseVersionCode: Int = 1
override val sources = listOf(
SingleLang("MangaReader.cc", "http://mangareader.cc/", "en", className = "MangaReaderCC") // more sites in the future might use MangaReader.cc 's overrides as they did in the past
)
companion object {
@JvmStatic
fun main(args: Array<String>) {
PaprikaAltGenerator().createAll()
}
}
}

View File

@ -0,0 +1,32 @@
package eu.kanade.tachiyomi.multisrc.paprika
import eu.kanade.tachiyomi.multisrc.ThemeSourceData.SingleLang
import eu.kanade.tachiyomi.multisrc.ThemeSourceGenerator
import eu.kanade.tachiyomi.source.Source
import eu.kanade.tachiyomi.source.SourceFactory
class PaprikaGenerator : ThemeSourceGenerator {
override val themePkg = "paprika"
override val themeClass = "Paprika"
override val baseVersionCode: Int = 1
override val sources = listOf(
SingleLang("MangaStream.xyz", "http://mangastream.xyz", "en", className = "MangaStreamXYZ"),
SingleLang("ReadMangaFox", "http://readmangafox.xyz", "en"),
// SingleLang("MangaZuki.xyz", "http://mangazuki.xyz", "en", className = "MangaZuki"),
// SingleLang("MangaTensei", "http://www.mangatensei.com", "en"),
SingleLang("MangaNelos.com", "http://manganelos.com", "en", className = "MangaNelosCom"),
SingleLang("MangaDogs.fun", "http://mangadogs.fun", "en", className = "MangaDogsFun"),
)
companion object {
@JvmStatic
fun main(args: Array<String>) {
PaprikaGenerator().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 = 'Paprika'
pkgNameSuffix = 'all.paprika'
extClass = '.PaprikaFactory'
extVersionCode = 7
libVersion = '1.2'
}
apply from: "$rootDir/common.gradle"

View File

@ -1,26 +0,0 @@
package eu.kanade.tachiyomi.extension.all.paprika
import eu.kanade.tachiyomi.source.Source
import eu.kanade.tachiyomi.source.SourceFactory
class PaprikaFactory : SourceFactory {
override fun createSources(): List<Source> = listOf(
MangazukiXyz(),
MangaTensei(),
MangaNelo(),
// MangaWindowClub(),
MangaDogs(),
ReadMangaFox(),
MangaStreamXyz(),
MangaReader()
)
}
class MangaStreamXyz : Paprika("MangaStream.xyz", "http://mangastream.xyz", "en")
class ReadMangaFox : Paprika("ReadMangaFox", "http://readmangafox.xyz", "en")
class MangazukiXyz : Paprika("MangaZuki.xyz", "http://mangazuki.xyz", "en")
class MangaTensei : Paprika("MangaTensei", "https://www.mangatensei.com", "en")
class MangaNelo : Paprika("MangaNelos.com", "http://manganelos.com", "en")
// class MangaWindowClub : PaprikaAlt("MangaWindow.club", "https://mangawindow.club", "en")
class MangaDogs : Paprika("MangaDogs.fun", "http://mangadogs.fun", "en")
class MangaReader : PaprikaAlt("MangaReader.cc", "http://mangareader.cc/", "en")