Move Queen Scans to Fairy Manga (#17881)

This commit is contained in:
Vetle Ledaal 2023-09-10 18:45:18 +00:00 committed by GitHub
parent 06c931e48a
commit aed4f13484
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 2 deletions

View File

@ -2,9 +2,27 @@ package eu.kanade.tachiyomi.extension.en.queenscans
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import eu.kanade.tachiyomi.source.model.SManga
import okhttp3.Request
class QueenScans : MangaThemesia("Queen Scans", "https://queenscans.com", "en", "/comics") {
class QueenScans : MangaThemesia("Fairy Manga", "https://fairymanga.com", "en") {
override val client = super.client.newBuilder()
.rateLimit(2)
.build()
override val id = 4680104728999154642
override fun mangaDetailsRequest(manga: SManga): Request {
if (manga.url.startsWith("/comics")) {
manga.url.replaceFirst("/comics", mangaUrlDirectory)
}
return super.mangaDetailsRequest(manga)
}
override fun chapterListRequest(manga: SManga): Request {
if (manga.url.startsWith("/comics")) {
manga.url.replaceFirst("/comics", mangaUrlDirectory)
}
return super.chapterListRequest(manga)
}
}

View File

@ -34,6 +34,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
SingleLang("ElarcPage", "https://elarcpage.com", "en"),
SingleLang("EnryuManga", "https://enryumanga.com", "en"),
SingleLang("Epsilon Scan", "https://epsilonscan.fr", "fr", isNsfw = true),
SingleLang("Fairy Manga", "https://fairymanga.com", "en", className = "QueenScans", overrideVersionCode = 1),
SingleLang("Franxx Mangás", "https://franxxmangas.net", "pt-BR", className = "FranxxMangas", isNsfw = true),
SingleLang("Gecenin Lordu", "https://geceninlordu.com", "tr", overrideVersionCode = 1),
SingleLang("GoGoManga", "https://gogomanga.fun", "en", overrideVersionCode = 1),
@ -104,7 +105,6 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
SingleLang("Pi Scans", "https://piscans.in", "id", overrideVersionCode = 1),
SingleLang("PMScans", "https://rackusreads.com", "en", overrideVersionCode = 3),
SingleLang("PotatoManga", "https://potatomanga.xyz", "ar"),
SingleLang("Queen Scans", "https://queenscans.com", "en"),
SingleLang("Raiki Scan", "https://raikiscan.com", "es"),
SingleLang("Raven Scans", "https://ravenscans.com", "en", overrideVersionCode = 1),
SingleLang("Rawkuma", "https://rawkuma.com/", "ja"),