Add multiple sources to Madara (#16973)

* Add multiple sources to Madara

* Fix MadaraGenerator

* Add new status text for French Madara sources

* Fix BlueSolo unused imports
This commit is contained in:
KirinRaikage 2023-07-02 22:39:05 +02:00 committed by GitHub
parent 8ad0505cd1
commit 691cba4a93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
22 changed files with 16 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -0,0 +1,9 @@
package eu.kanade.tachiyomi.extension.fr.bluesolo
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
class BlueSolo : Madara("Blue Solo", "https://www1.bluesolo.org", "fr", dateFormat = SimpleDateFormat("d MMMM yyyy", Locale.FRENCH)) {
override val mangaDetailsSelectorStatus = "div.summary-heading:contains(Statut) + .summary-content"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

View File

@ -4,6 +4,6 @@ import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
class PantheonScan : Madara("Pantheon Scan", "https://pantheon-scan.com", "fr", dateFormat = SimpleDateFormat("dd/mm/yyyy", Locale.FRANCE)) {
class PantheonScan : Madara("Pantheon Scan", "https://pantheon-scan.com", "fr", dateFormat = SimpleDateFormat("d MMMM yyyy", Locale.FRANCE)) {
override val useNewChapterEndpoint = true
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View File

@ -534,6 +534,7 @@ abstract class Madara(
"Concluído",
"Concluido",
"Finalizado",
"Achevé",
"Terminé",
"Hoàn Thành",
"مكتملة",
@ -543,7 +544,7 @@ abstract class Madara(
protected val ongoingStatusList: Array<String> = arrayOf(
"OnGoing", "Продолжается", "Updating", "Em Lançamento", "Em lançamento", "Em andamento",
"Em Andamento", "En cours", "Ativo", "Lançando", "Đang Tiến Hành", "Devam Ediyor",
"Em Andamento", "En cours", "En cours de publication", "Ativo", "Lançando", "Đang Tiến Hành", "Devam Ediyor",
"Devam ediyor", "In Corso", "In Arrivo", "مستمرة", "مستمر", "En Curso", "En curso", "Emision",
"Curso", "En marcha", "Publicandose", "En emision", "连载中",
)

View File

@ -54,6 +54,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Bichen Traduções", "https://bichentraducoes.com", "pt-BR", isNsfw = true, className = "BichenTraducoes"),
SingleLang("BL Manhwa Club", "https://blmanhwa.club", "pt-BR", isNsfw = true, className = "BlManhwaClub", overrideVersionCode = 2),
SingleLang("BlogManga", "https://blogmanga.net", "en"),
SingleLang("Blue Solo", "https://www1.bluesolo.org", "fr", isNsfw = true),
SingleLang("BokugenTranslation", "https://bokugents.com", "es", overrideVersionCode = 1),
SingleLang("Boruto Explorer", "https://leitor.borutoexplorer.com.br", "pt-BR", overrideVersionCode = 1),
SingleLang("BoysLove", "https://boyslove.me", "en", isNsfw = true, overrideVersionCode = 3),
@ -129,6 +130,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Hentai Teca", "https://hentaiteca.net", "pt-BR", isNsfw = true, overrideVersionCode = 1),
SingleLang("Hentai20", "https://hentai20.io", "en", isNsfw = true, overrideVersionCode = 3),
SingleLang("HentaiRead", "https://hentairead.com", "en", isNsfw = true, className = "Hentairead", overrideVersionCode = 3),
SingleLang("Hentai-Scantrad", "https://hentai.scantrad-vf.cc", "fr", isNsfw = true, className = "HentaiScantrad"),
SingleLang("HentaiWebtoon", "https://hentaiwebtoon.com", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("HentaiXComic", "https://hentaixcomic.com", "en", isNsfw = true),
SingleLang("HentaiXYuri", "https://hentaixyuri.com", "en", isNsfw = true),
@ -333,7 +335,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Novels Town", "https://novelstown.cyou", "ar"),
SingleLang("Oh No Manga", "https://ohnomanga.com", "en", isNsfw = true),
SingleLang("Painful Nightz Scan", "https://painfulnightz.com", "en", overrideVersionCode = 1),
SingleLang("Pantheon Scan", "https://pantheon-scan.com", "fr"),
SingleLang("Pantheon Scan", "https://pantheon-scan.com", "fr", overrideVersionCode = 1),
SingleLang("Peach Scan", "https://www.peachscan.com", "pt-BR", isNsfw = true),
SingleLang("Petrotechsociety", "https://www.petrotechsociety.org", "en", isNsfw = true),
SingleLang("Phoenix Fansub", "https://phoenixmangas.com", "es"),
@ -373,6 +375,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("SamuraiScan", "https://samuraiscan.com", "es", overrideVersionCode = 1),
SingleLang("Sawamics", "https://sawamics.com", "en"),
SingleLang("ScamberTraslator", "https://scambertraslator.com", "es", overrideVersionCode = 3),
SingleLang("Scan Hentai Menu", "https://scan.hentai.menu", "fr", isNsfw = true),
SingleLang("Scans Raw", "https://scansraw.com", "en", overrideVersionCode = 1),
SingleLang("Scantrad-VF", "https://scantrad-vf.co", "fr", className = "ScantradVF"),
SingleLang("Sdl scans", "https://sdlscans.com", "es", className = "SdlScans"),