Migrate FusionScanlation (#13810)

* Moves FusionScanlation

* Add versionId
This commit is contained in:
nzoba 2022-10-11 13:59:55 +02:00 committed by GitHub
parent 291cb10bae
commit bd39e11141
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 24 additions and 18 deletions

View File

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

View File

@ -0,0 +1,23 @@
package eu.kanade.tachiyomi.extension.es.fusionscanlation
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
class FusionScanlation : Madara("Fusion Scanlation", "https://fusionscanlation.com", "es", SimpleDateFormat("d 'de' MMMM 'de' yyyy", Locale("es"))) {
override val versionId = 2
override val seriesTypeSelector = ".post-content_item:contains(Tipo) .summary-content"
override val altNameSelector = ".post-content_item:contains(Nombre Alternativo) .summary-content"
override val altName = "Nombre alternativo: "
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
.connectTimeout(10, TimeUnit.SECONDS)
.readTimeout(30, TimeUnit.SECONDS)
.rateLimit(1, 2)
.build()
}

View File

@ -1,17 +0,0 @@
package eu.kanade.tachiyomi.extension.es.fusionscanlation
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
class FusionScanlation : MangaThemesia("Fusion Scanlation", "https://fusionscanlation.com", "es", dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale("es"))) {
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
.connectTimeout(10, TimeUnit.SECONDS)
.readTimeout(30, TimeUnit.SECONDS)
.rateLimit(1, 2)
.build()
}

View File

@ -116,6 +116,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Fug Manga", "https://fugmanga.net", "ar", overrideVersionCode = 1), SingleLang("Fug Manga", "https://fugmanga.net", "ar", overrideVersionCode = 1),
SingleLang("Fukushuu no Yuusha", "https://fny-scantrad.com", "fr", overrideVersionCode = 2), SingleLang("Fukushuu no Yuusha", "https://fny-scantrad.com", "fr", overrideVersionCode = 2),
SingleLang("Furio Scans", "https://furioscans.com", "pt-BR", overrideVersionCode = 4), SingleLang("Furio Scans", "https://furioscans.com", "pt-BR", overrideVersionCode = 4),
SingleLang("Fusion Scanlation", "https://fusionscanlation.com", "es", className = "FusionScanlation", overrideVersionCode = 3),
SingleLang("GalaxyDegenScans", "https://gdstmp.site", "en", overrideVersionCode = 3), SingleLang("GalaxyDegenScans", "https://gdstmp.site", "en", overrideVersionCode = 3),
SingleLang("Gatemanga", "https://gatemanga.com", "ar", overrideVersionCode = 1), SingleLang("Gatemanga", "https://gatemanga.com", "ar", overrideVersionCode = 1),
SingleLang("GeassToon", "https://geasstoon.com", "tr"), SingleLang("GeassToon", "https://geasstoon.com", "tr"),

View File

@ -32,7 +32,6 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
SingleLang("Dojing.net", "https://dojing.net", "id", isNsfw = true, className = "DojingNet"), SingleLang("Dojing.net", "https://dojing.net", "id", isNsfw = true, className = "DojingNet"),
SingleLang("FlameScans.fr", "https://flamescans.fr", "fr", className = "FlameScansFR"), SingleLang("FlameScans.fr", "https://flamescans.fr", "fr", className = "FlameScansFR"),
SingleLang("Franxx Mangás", "https://franxxmangas.net", "pt-BR", className = "FranxxMangas", isNsfw = true), SingleLang("Franxx Mangás", "https://franxxmangas.net", "pt-BR", className = "FranxxMangas", isNsfw = true),
SingleLang("Fusion Scanlation", "https://fusionscanlation.com", "es", className = "FusionScanlation", overrideVersionCode = 2),
SingleLang("Gabut Scans", "https://gabutscans.com", "id", overrideVersionCode = 1), SingleLang("Gabut Scans", "https://gabutscans.com", "id", overrideVersionCode = 1),
SingleLang("Gecenin Lordu", "https://geceninlordu.com", "tr", overrideVersionCode = 1), SingleLang("Gecenin Lordu", "https://geceninlordu.com", "tr", overrideVersionCode = 1),
SingleLang("GoGoManga", "https://gogomanga.fun", "en", overrideVersionCode = 1), SingleLang("GoGoManga", "https://gogomanga.fun", "en", overrideVersionCode = 1),