fix 404 on some Madara Sources (#16272)

This commit is contained in:
mobi2002 2023-05-03 23:30:32 +05:00 committed by GitHub
parent 2ee1fccbce
commit 04ce9fcb0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 23 additions and 9 deletions

View File

@ -7,6 +7,7 @@ import okhttp3.Request
import org.jsoup.nodes.Element import org.jsoup.nodes.Element
class Azora : Madara("Azora", "https://azoranov.com", "ar") { class Azora : Madara("Azora", "https://azoranov.com", "ar") {
override val mangaSubString = "series"
override fun popularMangaRequest(page: Int): Request = GET("$baseUrl/page/$page/?m_orderby=views", headers) override fun popularMangaRequest(page: Int): Request = GET("$baseUrl/page/$page/?m_orderby=views", headers)
override fun chapterListSelector() = "li.wp-manga-chapter:not(.premium-block)" // Filter fake chapters override fun chapterListSelector() = "li.wp-manga-chapter:not(.premium-block)" // Filter fake chapters
override fun chapterFromElement(element: Element): SChapter { override fun chapterFromElement(element: Element): SChapter {

View File

@ -0,0 +1,7 @@
package eu.kanade.tachiyomi.extension.en.kissmangain
import eu.kanade.tachiyomi.multisrc.madara.Madara
class KissmangaIn : Madara("Kissmanga.in", "https://kissmanga.in", "en") {
override val mangaSubString = "kissmanga"
}

View File

@ -4,4 +4,6 @@ import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat import java.text.SimpleDateFormat
import java.util.Locale import java.util.Locale
class LilyManga : Madara("Lily Manga", "https://lilymanga.net", "en", SimpleDateFormat("yyyy-MM-dd", Locale.US)) class LilyManga : Madara("Lily Manga", "https://lilymanga.net", "en", SimpleDateFormat("yyyy-MM-dd", Locale.US)) {
override val mangaSubString = "ys"
}

View File

@ -9,4 +9,6 @@ class MadaraDex : Madara(
"https://madaradex.org", "https://madaradex.org",
"en", "en",
dateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US), dateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US),
) ) {
override val mangaSubString = "title"
}

View File

@ -4,5 +4,7 @@ import eu.kanade.tachiyomi.multisrc.madara.Madara
class ManyToon : Madara("ManyToon", "https://manytoon.com", "en") { class ManyToon : Madara("ManyToon", "https://manytoon.com", "en") {
override val mangaSubString = "comic"
override val useNewChapterEndpoint: Boolean = true override val useNewChapterEndpoint: Boolean = true
} }

View File

@ -22,7 +22,7 @@ class Toonily : Madara(
.addNetworkInterceptor(cookieInterceptor) .addNetworkInterceptor(cookieInterceptor)
.build() .build()
override val mangaSubString = "webtoons" override val mangaSubString = "webtoon"
override fun searchPage(page: Int): String { override fun searchPage(page: Int): String {
return if (page > 1) { return if (page > 1) {

View File

@ -47,7 +47,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Astral-Manga", "https://astral-manga.fr", "fr", className = "AstralManga"), SingleLang("Astral-Manga", "https://astral-manga.fr", "fr", className = "AstralManga"),
SingleLang("Atikrost", "https://atikrost.com", "tr", overrideVersionCode = 1), SingleLang("Atikrost", "https://atikrost.com", "tr", overrideVersionCode = 1),
SingleLang("AZManhwa", "https://azmanhwa.net", "en"), SingleLang("AZManhwa", "https://azmanhwa.net", "en"),
SingleLang("Azora", "https://azoranov.com", "ar", overrideVersionCode = 5), SingleLang("Azora", "https://azoranov.com", "ar", overrideVersionCode = 6),
SingleLang("Bakaman", "https://bakaman.net", "th", overrideVersionCode = 1), SingleLang("Bakaman", "https://bakaman.net", "th", overrideVersionCode = 1),
SingleLang("Banana Cítrica", "https://bananacitrica.com", "pt-BR", isNsfw = true, pkgName = "bananamecanica", className = "BananaCitrica", overrideVersionCode = 4), SingleLang("Banana Cítrica", "https://bananacitrica.com", "pt-BR", isNsfw = true, pkgName = "bananamecanica", className = "BananaCitrica", overrideVersionCode = 4),
SingleLang("BestManga", "https://bestmanga.club", "ru", overrideVersionCode = 1), SingleLang("BestManga", "https://bestmanga.club", "ru", overrideVersionCode = 1),
@ -165,7 +165,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Kami Sama Explorer", "https://leitor.kamisama.com.br", "pt-BR", overrideVersionCode = 2), SingleLang("Kami Sama Explorer", "https://leitor.kamisama.com.br", "pt-BR", overrideVersionCode = 2),
SingleLang("KawaScans", "https://kawascans.com", "en", overrideVersionCode = 1), SingleLang("KawaScans", "https://kawascans.com", "en", overrideVersionCode = 1),
SingleLang("Kiara", "https://kiara.cool", "en"), SingleLang("Kiara", "https://kiara.cool", "en"),
SingleLang("Kissmanga.in", "https://kissmanga.in", "en", className = "KissmangaIn", overrideVersionCode = 2), SingleLang("Kissmanga.in", "https://kissmanga.in", "en", className = "KissmangaIn", overrideVersionCode = 3),
SingleLang("KlikManga", "https://klikmanga.id", "id", overrideVersionCode = 2), SingleLang("KlikManga", "https://klikmanga.id", "id", overrideVersionCode = 2),
SingleLang("KomikRame", "https://komikra.me", "id"), SingleLang("KomikRame", "https://komikra.me", "id"),
SingleLang("KSGroupScans", "https://ksgroupscans.com", "en"), SingleLang("KSGroupScans", "https://ksgroupscans.com", "en"),
@ -175,12 +175,12 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Lara Manga", "https://laramanga.love", "en", overrideVersionCode = 1), SingleLang("Lara Manga", "https://laramanga.love", "en", overrideVersionCode = 1),
SingleLang("Legion Scan", "https://legionscans.com", "es"), SingleLang("Legion Scan", "https://legionscans.com", "es"),
SingleLang("LHTranslation", "https://lhtranslation.net", "en", overrideVersionCode = 1), SingleLang("LHTranslation", "https://lhtranslation.net", "en", overrideVersionCode = 1),
SingleLang("Lily Manga", "https://lilymanga.net", "en", isNsfw = true, overrideVersionCode = 2), SingleLang("Lily Manga", "https://lilymanga.net", "en", isNsfw = true, overrideVersionCode = 3),
SingleLang("Lima Scans", "http://limascans.xyz/v2", "pt-BR", isNsfw = true, overrideVersionCode = 2), SingleLang("Lima Scans", "http://limascans.xyz/v2", "pt-BR", isNsfw = true, overrideVersionCode = 2),
SingleLang("Lolicon", "https://lolicon.mobi", "en", isNsfw = true, overrideVersionCode = 2), SingleLang("Lolicon", "https://lolicon.mobi", "en", isNsfw = true, overrideVersionCode = 2),
SingleLang("Lord Manga", "https://lordmanga.com", "en"), SingleLang("Lord Manga", "https://lordmanga.com", "en"),
SingleLang("LuxManga", "https://luxmanga.com", "en"), SingleLang("LuxManga", "https://luxmanga.com", "en"),
SingleLang("MadaraDex", "https://madaradex.org", "en", isNsfw = true), SingleLang("MadaraDex", "https://madaradex.org", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("Manga Action", "https://mangaaction.com", "en", overrideVersionCode = 2), SingleLang("Manga Action", "https://mangaaction.com", "en", overrideVersionCode = 2),
SingleLang("Manga Bilgini", "https://mangabilgini.com", "tr"), SingleLang("Manga Bilgini", "https://mangabilgini.com", "tr"),
SingleLang("Manga Bin", "https://mangabin.com", "en", overrideVersionCode = 1), SingleLang("Manga Bin", "https://mangabin.com", "en", overrideVersionCode = 1),
@ -298,7 +298,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("ManhwaWorld", "https://manhwaworld.com", "en"), SingleLang("ManhwaWorld", "https://manhwaworld.com", "en"),
SingleLang("Manhwua.fans", "https://manhwua.fans", "en", isNsfw = true, className = "Manhwuafans"), SingleLang("Manhwua.fans", "https://manhwua.fans", "en", isNsfw = true, className = "Manhwuafans"),
SingleLang("ManyComic", "https://manycomic.com", "en", isNsfw = true, overrideVersionCode = 1), SingleLang("ManyComic", "https://manycomic.com", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("ManyToon", "https://manytoon.com", "en", isNsfw = true, overrideVersionCode = 4), SingleLang("ManyToon", "https://manytoon.com", "en", isNsfw = true, overrideVersionCode = 5),
SingleLang("ManyToon.me", "https://manytoon.me", "en", isNsfw = true, className = "ManyToonMe", overrideVersionCode = 4), SingleLang("ManyToon.me", "https://manytoon.me", "en", isNsfw = true, className = "ManyToonMe", overrideVersionCode = 4),
SingleLang("ManyToonClub", "https://manytoon.club", "ko", isNsfw = true, overrideVersionCode = 1), SingleLang("ManyToonClub", "https://manytoon.club", "ko", isNsfw = true, overrideVersionCode = 1),
SingleLang("Meraki Scan", "https://meraki801.com", "es", isNsfw = true), SingleLang("Meraki Scan", "https://meraki801.com", "es", isNsfw = true),
@ -409,7 +409,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("TonizuToon", "https://tonizutoon.com", "tr", isNsfw = true), SingleLang("TonizuToon", "https://tonizutoon.com", "tr", isNsfw = true),
SingleLang("ToonChill", "https://toonchill.com", "en", overrideVersionCode = 1), SingleLang("ToonChill", "https://toonchill.com", "en", overrideVersionCode = 1),
SingleLang("ToonGod", "https://www.toongod.com", "en", isNsfw = true, overrideVersionCode = 4), SingleLang("ToonGod", "https://www.toongod.com", "en", isNsfw = true, overrideVersionCode = 4),
SingleLang("Toonily", "https://toonily.com", "en", isNsfw = true, overrideVersionCode = 10), SingleLang("Toonily", "https://toonily.com", "en", isNsfw = true, overrideVersionCode = 11),
SingleLang("Toonily.net", "https://toonily.net", "en", isNsfw = true, className = "Toonilynet", overrideVersionCode = 2), SingleLang("Toonily.net", "https://toonily.net", "en", isNsfw = true, className = "Toonilynet", overrideVersionCode = 2),
SingleLang("ToonMany", "https://toonmany.com", "en", isNsfw = true), SingleLang("ToonMany", "https://toonmany.com", "en", isNsfw = true),
SingleLang("Top Manhua", "https://topmanhua.com", "en", overrideVersionCode = 2), SingleLang("Top Manhua", "https://topmanhua.com", "en", overrideVersionCode = 2),