Initial commit
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 5.5 KiB |
|
After Width: | Height: | Size: 7.8 KiB |
BIN
multisrc/overrides/guya/dankefurslesen/res/web_hi_res_512.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
22
multisrc/overrides/guya/default/AndroidManifest.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<application>
|
||||
<activity
|
||||
android:name="eu.kanade.tachiyomi.multisrc.guya.GuyaUrlActivity"
|
||||
android:excludeFromRecents="true"
|
||||
android:exported="true"
|
||||
android:theme="@android:style/Theme.NoDisplay">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<data
|
||||
android:host="${SOURCEHOST}"
|
||||
android:pathPattern="/.*/.*/..*"
|
||||
android:scheme="${SOURCESCHEME}" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
</manifest>
|
||||
BIN
multisrc/overrides/guya/default/res/mipmap-hdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
multisrc/overrides/guya/default/res/mipmap-mdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
multisrc/overrides/guya/default/res/mipmap-xhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 9.8 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 23 KiB |
BIN
multisrc/overrides/guya/default/res/web_hi_res_512.png
Normal file
|
After Width: | Height: | Size: 89 KiB |
BIN
multisrc/overrides/guya/guya/res/mipmap-hdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
multisrc/overrides/guya/guya/res/mipmap-mdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
multisrc/overrides/guya/guya/res/mipmap-xhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 9.8 KiB |
BIN
multisrc/overrides/guya/guya/res/mipmap-xxhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
multisrc/overrides/guya/guya/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
multisrc/overrides/guya/guya/res/web_hi_res_512.png
Normal file
|
After Width: | Height: | Size: 89 KiB |
|
After Width: | Height: | Size: 5.3 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 7.3 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 21 KiB |
BIN
multisrc/overrides/guya/hachirumi/res/web_hi_res_512.png
Normal file
|
After Width: | Height: | Size: 160 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 8.6 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 61 KiB |
@@ -0,0 +1,50 @@
|
||||
package eu.kanade.tachiyomi.extension.all.magicaltranslators
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.guya.Guya
|
||||
import eu.kanade.tachiyomi.source.SourceFactory
|
||||
import eu.kanade.tachiyomi.source.model.MangasPage
|
||||
import okhttp3.Response
|
||||
|
||||
class MagicalTranslatorsFactory : SourceFactory {
|
||||
override fun createSources() = listOf(
|
||||
MagicalTranslatorsEN(),
|
||||
MagicalTranslatorsES(),
|
||||
MagicalTranslatorsPL(),
|
||||
)
|
||||
}
|
||||
|
||||
abstract class MagicalTranslatorsCommon(lang: String) :
|
||||
Guya("Magical Translators", "https://mahoushoujobu.com", lang) {
|
||||
|
||||
protected abstract fun filterMangasPage(mangasPage: MangasPage): MangasPage
|
||||
|
||||
override fun popularMangaParse(response: Response): MangasPage =
|
||||
filterMangasPage(super.popularMangaParse(response))
|
||||
|
||||
override fun latestUpdatesParse(response: Response): MangasPage =
|
||||
filterMangasPage(super.latestUpdatesParse(response))
|
||||
|
||||
override fun searchMangaParseWithSlug(response: Response, slug: String): MangasPage =
|
||||
filterMangasPage(super.searchMangaParseWithSlug(response, slug))
|
||||
|
||||
override fun searchMangaParse(response: Response, query: String): MangasPage =
|
||||
filterMangasPage(super.searchMangaParse(response, query))
|
||||
}
|
||||
|
||||
class MagicalTranslatorsEN : MagicalTranslatorsCommon("en") {
|
||||
override fun filterMangasPage(mangasPage: MangasPage): MangasPage = mangasPage.copy(
|
||||
mangas = mangasPage.mangas.filterNot { it.url.endsWith("-ES") || it.url.endsWith("-PL") },
|
||||
)
|
||||
}
|
||||
|
||||
class MagicalTranslatorsES : MagicalTranslatorsCommon("es") {
|
||||
override fun filterMangasPage(mangasPage: MangasPage): MangasPage = mangasPage.copy(
|
||||
mangas = mangasPage.mangas.filter { it.url.endsWith("-ES") },
|
||||
)
|
||||
}
|
||||
|
||||
class MagicalTranslatorsPL : MagicalTranslatorsCommon("pl") {
|
||||
override fun filterMangasPage(mangasPage: MangasPage): MangasPage = mangasPage.copy(
|
||||
mangas = mangasPage.mangas.filter { it.url.endsWith("-PL") },
|
||||
)
|
||||
}
|
||||