Prune Madara part 2 (#847)

This commit is contained in:
Mike 2024-01-31 06:55:21 -05:00 committed by GitHub
parent e89c3d49a3
commit 77b509b80d
15 changed files with 0 additions and 180 deletions

View File

@ -1,14 +0,0 @@
package eu.kanade.tachiyomi.extension.es.dokkomanga
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
class DokkoManga : Madara(
"DokkoManga",
"https://dokkomanga.com",
"es",
SimpleDateFormat("MMMMM dd, yyyy", Locale("es")),
) {
override val useNewChapterEndpoint = true
}

View File

@ -1,7 +0,0 @@
package eu.kanade.tachiyomi.extension.en.dreammanga
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
class DreamManga : Madara("Dream Manga", "https://www.swarmmanga.com", "en", SimpleDateFormat("dd/MM/yyyy", Locale.US))

View File

@ -1,20 +0,0 @@
package eu.kanade.tachiyomi.extension.pt.finalscans
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 FinalScans : Madara(
"Final Scans",
"https://finalscans.com",
"pt-BR",
SimpleDateFormat("MMMMM dd, yyyy", Locale("pt", "BR")),
) {
override val client: OkHttpClient = super.client.newBuilder()
.rateLimit(1, 2, TimeUnit.SECONDS)
.build()
}

View File

@ -1,25 +0,0 @@
package eu.kanade.tachiyomi.extension.en.flextapescans
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.source.model.Page
import org.jsoup.nodes.Document
import java.text.SimpleDateFormat
import java.util.Locale
class FlexTapeScans : Madara(
"Flex Tape Scans",
"https://flextapescans.com",
"en",
dateFormat = SimpleDateFormat("MM/dd/yyy", Locale.ROOT),
) {
override val useNewChapterEndpoint = false
override fun pageListParse(document: Document): List<Page> {
val blocked = document.select(".content-blocked").first()
if (blocked != null) {
throw Exception(blocked.text()) // You need to be contributor to read this chapter
}
return super.pageListParse(document)
}
}

View File

@ -1,12 +0,0 @@
package eu.kanade.tachiyomi.extension.en.hmanhwa
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
class hManhwa : Madara(
"hManhwa",
"https://hmanhwa.com",
"en",
dateFormat = SimpleDateFormat("dd MMM", Locale.US),
)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

View File

@ -1,59 +0,0 @@
package eu.kanade.tachiyomi.extension.pt.huntersscans
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.POST
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import okhttp3.FormBody
import okhttp3.OkHttpClient
import okhttp3.Request
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
class HuntersScans : Madara(
"Hunters Scan",
"https://huntersscan.xyz/",
"pt-BR",
SimpleDateFormat("dd 'de' MMMMM 'de' yyyy", Locale("pt", "BR")),
) {
override val client: OkHttpClient = super.client.newBuilder()
.rateLimit(1, 2, TimeUnit.SECONDS)
.build()
override val useNewChapterEndpoint = true
private fun loadMoreRequest(page: Int, metaKey: String): Request {
val formBody = FormBody.Builder().apply {
add("action", "madara_load_more")
add("page", page.toString())
add("template", "madara-core/content/content-archive")
add("vars[paged]", "1")
add("vars[orderby]", "meta_value_num")
add("vars[template]", "archive")
add("vars[sidebar]", "right")
add("vars[post_type]", "wp-manga")
add("vars[post_status]", "publish")
add("vars[meta_key]", metaKey)
add("vars[order]", "desc")
add("vars[meta_query][relation]", "AND")
add("vars[manga_archives_item_layout]", "default")
}.build()
val xhrHeaders = headersBuilder()
.add("Content-Length", formBody.contentLength().toString())
.add("Content-Type", formBody.contentType().toString())
.add("X-Requested-With", "XMLHttpRequest")
.build()
return POST("$baseUrl/wp-admin/admin-ajax.php", xhrHeaders, formBody)
}
override fun popularMangaRequest(page: Int): Request {
return loadMoreRequest(page - 1, "_wp_manga_views")
}
override fun latestUpdatesRequest(page: Int): Request {
return loadMoreRequest(page - 1, "_latest_update")
}
}

View File

@ -1,8 +0,0 @@
package eu.kanade.tachiyomi.extension.en.isekaiscancom
import eu.kanade.tachiyomi.multisrc.madara.Madara
class IsekaiScanCom : Madara("IsekaiScan.com", "https://isekaiscan.com", "en") {
override val useNewChapterEndpoint = true
}

View File

@ -1,12 +0,0 @@
package eu.kanade.tachiyomi.extension.en.laramanga
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
class LaraManga : Madara(
"Lara Manga",
"https://laramanga.love",
"en",
dateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US),
)

View File

@ -1,12 +0,0 @@
package eu.kanade.tachiyomi.extension.en.lordmanga
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
class LordManga : Madara(
"Lord Manga",
"https://lordmanga.com",
"en",
dateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US),
)

View File

@ -74,13 +74,11 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Demon Sect", "https://demonsect.com.br", "pt-BR", pkgName = "prismascans", overrideVersionCode = 4),
SingleLang("Dessert Scan", "https://cabaredowatame.site", "pt-BR", isNsfw = true),
SingleLang("DiamondFansub", "https://diamondfansub.com", "tr", overrideVersionCode = 1),
SingleLang("DokkoManga", "https://dokkomanga.com", "es", overrideVersionCode = 1),
SingleLang("Doodmanga", "https://www.doodmanga.com", "th"),
SingleLang("DoujinHentai", "https://doujinhentai.net", "es", isNsfw = true, overrideVersionCode = 1),
SingleLang("DragonTea", "https://dragontea.ink", "en", overrideVersionCode = 3),
SingleLang("DragonTranslation.net", "https://dragontranslation.net", "es", isNsfw = true, className = "DragonTranslationNet"),
SingleLang("Drake Scans", "https://drakescans.com", "en", overrideVersionCode = 4),
SingleLang("Dream Manga", "https://www.swarmmanga.com", "en", overrideVersionCode = 3),
SingleLang("Drope Scan", "https://dropescan.com", "pt-BR", overrideVersionCode = 4),
SingleLang("Elite Manga", "https://www.elitemanga.org", "en"),
SingleLang("Emperor Scan", "https://emperorscan.com", "es", overrideVersionCode = 1),
@ -90,10 +88,8 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("EZmanga", "https://ezmanga.net", "en"),
SingleLang("FactManga", "https://factmanga.com", "en"),
SingleLang("Fay Scans", "https://fayscans.net", "pt-BR", overrideVersionCode = 2),
SingleLang("Final Scans", "https://finalscans.com", "pt-BR", isNsfw = true, overrideVersionCode = 1),
SingleLang("Fire Scans", "https://firescans.xyz", "en", overrideVersionCode = 1),
SingleLang("Fleur Blanche", "https://fbsquads.com", "pt-BR", isNsfw = true, overrideVersionCode = 2),
SingleLang("Flex Tape Scans", "https://flextapescans.com", "en", isNsfw = true),
SingleLang("Flower Manga", "https://flowermanga.com", "pt-BR"),
SingleLang("Fox White", "https://foxwhite.com.br", "pt-BR"),
SingleLang("FR-Scan", "https://fr-scan.com", "fr", pkgName = "frdashscan", className = "FRScan", overrideVersionCode = 5),
@ -138,17 +134,14 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("HistoireDHentai", "https://hhentai.fr", "fr", isNsfw = true),
SingleLang("Hizomanga", "https://hizomanga.com", "ar", overrideVersionCode = 1),
SingleLang("HM2D", "https://mangadistrict.com/hdoujin", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("hManhwa", "https://hmanhwa.com", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("HouseMangas", "https://housemangas.com", "es"),
SingleLang("Hreads", "https://hreads.net", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("Hunters Scans", "https://huntersscan.xyz", "pt-BR", isNsfw = true),
SingleLang("I Love Manhwa", "https://ilovemanhwa.com", "en", isNsfw = true),
SingleLang("Illusion Scan", "https://illusionscan.com", "pt-BR", isNsfw = true),
SingleLang("Immortal Updates", "https://immortalupdates.com", "en", overrideVersionCode = 6),
SingleLang("InfraFandub", "https://infrafandub.com", "es", overrideVersionCode = 1),
SingleLang("Inmortal Scan", "https://manga.mundodrama.site", "es"),
SingleLang("InstaManhwa", "https://www.instamanhwa.com", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("IsekaiScan.com", "https://isekaiscan.com", "en", className = "IsekaiScanCom", overrideVersionCode = 4),
SingleLang("IsekaiScan.to (unoriginal)", "https://m.isekaiscan.to", "en", isNsfw = true, pkgName = "isekaiscaneu", className = "IsekaiScanTo", overrideVersionCode = 3),
SingleLang("IsekaiScan.top (unoriginal)", "https://isekaiscan.top", "en", className = "IsekaiScanTop", overrideVersionCode = 1),
SingleLang("IsekaiScanManga (unoriginal)", "https://isekaiscanmanga.com", "en", className = "IsekaiScanManga", overrideVersionCode = 1),
@ -159,7 +152,6 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Kami Sama Explorer", "https://leitor.kamisama.com.br", "pt-BR", overrideVersionCode = 2),
SingleLang("Karatcam Scans", "https://karatcam-scans.fr", "fr", isNsfw = true),
SingleLang("Kataitake", "https://www.kataitake.fr", "fr", isNsfw = true),
SingleLang("KawaScans", "https://kawascans.com", "en", overrideVersionCode = 1),
SingleLang("KenhuaScan", "https://kenhuav2scan.com", "es"),
SingleLang("Kings-Manga", "https://www.kings-manga.co", "th", className = "KingsManga"),
SingleLang("Kissmanga.in", "https://kissmanga.in", "en", className = "KissmangaIn", overrideVersionCode = 3),
@ -168,12 +160,10 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Koinobori Scan", "https://koinoboriscan.com", "es", isNsfw = true),
SingleLang("Komik Chan", "https://komikchan.com", "en", overrideVersionCode = 1),
SingleLang("Komik Gue", "https://komikgue.pro", "id", isNsfw = true),
SingleLang("KomikRame", "https://komikra.me", "id"),
SingleLang("KSGroupScans", "https://ksgroupscans.com", "en"),
SingleLang("Kun Manga", "https://kunmanga.com", "en", overrideVersionCode = 1),
SingleLang("Lady Manga", "https://ladymanga.com", "en"),
SingleLang("Lala Manga", "https://lalamanga.com", "en", isNsfw = true),
SingleLang("Lara Manga", "https://laramanga.love", "en", overrideVersionCode = 1),
SingleLang("Last Knight Translation", "https://lkscanlation.com", "es", isNsfw = true, className = "LKScanlation"),
SingleLang("Lector Online", "https://lectorunm.life", "es", isNsfw = true, className = "Ikifeng", overrideVersionCode = 1),
SingleLang("LectorManga.lat", "https://www.lectormanga.lat", "es", isNsfw = true, className = "LectorMangaLat"),
@ -184,7 +174,6 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Limbo Scan", "https://limboscan.com.br", "pt-BR", isNsfw = true),
SingleLang("Link Start Scan", "https://www.linkstartscan.xyz", "pt-BR", isNsfw = true),
SingleLang("Lolicon", "https://lolicon.mobi", "en", isNsfw = true, overrideVersionCode = 2),
SingleLang("Lord Manga", "https://lordmanga.com", "en"),
SingleLang("Luffy Manga", "https://luffymanga.com", "en"),
SingleLang("Lura Toon", "https://luratoon.com", "pt-BR", overrideVersionCode = 7, pkgName = "randomscan", className = "LuraToon"),
SingleLang("LuxManga", "https://luxmanga.net", "en", isNsfw = true, overrideVersionCode = 1),