add linting to multisrc (#8740)

* add linting to multisrc

* remove generated blocks

* lint again

* re-format the file

* remove buildScript block

* manaully format

* remove groups
This commit is contained in:
Aria Moradi 2021-08-22 19:59:08 +04:30 committed by GitHub
parent a9f7b363b1
commit d0793a1741
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
200 changed files with 399 additions and 658 deletions

View File

@ -63,6 +63,14 @@ tasks {
throw Exception("Java process failed with exit code: $exitCode")
}
}
dependsOn("assembleDebug")
dependsOn("ktFormat", "ktLint", "assembleDebug")
}
register<org.jmailen.gradle.kotlinter.tasks.LintTask>("ktLint") {
source(files("src", "overrides"))
}
register<org.jmailen.gradle.kotlinter.tasks.FormatTask>("ktFormat") {
source(files("src", "overrides"))
}
}

View File

@ -5,7 +5,6 @@ import eu.kanade.tachiyomi.source.model.SChapter
import org.jsoup.nodes.Element
import java.util.Calendar
class KSGroupScans : FMReader("KSGroupScans", "https://ksgroupscans.com", "en") {
override fun chapterFromElement(element: Element, mangaTitle: String): SChapter {
return SChapter.create().apply {

View File

@ -1,14 +1,13 @@
package eu.kanade.tachiyomi.extension.en.lynxscans
import eu.kanade.tachiyomi.multisrc.genkan.Genkan
import org.jsoup.nodes.Document
import eu.kanade.tachiyomi.source.model.Page
import org.jsoup.nodes.Document
class LynxScans : Genkan("LynxScans", "https://lynxscans.com", "en") {
override fun pageListParse(document: Document): List<Page> {
val pages = mutableListOf<Page>()
val allImages = document.select("div#pages-container + script").first().data()
.substringAfter("[").substringBefore("];")
.replace(Regex("""["\\]"""), "")

View File

@ -4,5 +4,4 @@ import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
class AYATOON : Madara("AYATOON", "https://ayatoon.com", "tr", SimpleDateFormat("dd MMM yyyy", Locale("tr")))

View File

@ -9,6 +9,4 @@ class DragonTea : Madara(
"https://dragontea.ink/",
"en",
dateFormat = SimpleDateFormat("MM/dd/yyyy", Locale.US)
) {
}
)

View File

@ -6,7 +6,7 @@ import okhttp3.Response
import java.text.SimpleDateFormat
import java.util.Locale
class EGYManga : Madara( "EGY Manga", "https://egymanga.net", "ar", SimpleDateFormat("MMMM dd, yyyy", Locale("ar"))) {
class EGYManga : Madara("EGY Manga", "https://egymanga.net", "ar", SimpleDateFormat("MMMM dd, yyyy", Locale("ar"))) {
override fun chapterListParse(response: Response): List<SChapter> = super.chapterListParse(response).reversed()
override val pageListParseSelector = "div.separator"
}

View File

@ -9,6 +9,4 @@ class EternalScans : Madara(
"https://eternalscans.com",
"en",
dateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US)
) {
}
)

View File

@ -1,11 +1,9 @@
package eu.kanade.tachiyomi.extension.en.fastmanhwa
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
@Nsfw
class FastManhwa : Madara("FastManhwa", "https://fastmanhwa.net", "en", dateFormat = SimpleDateFormat("MMMM d, yyyy", Locale.US)) {
}
class FastManhwa : Madara("FastManhwa", "https://fastmanhwa.net", "en", dateFormat = SimpleDateFormat("MMMM d, yyyy", Locale.US))

View File

@ -2,8 +2,6 @@ package eu.kanade.tachiyomi.extension.en.firstkissmanga
import eu.kanade.tachiyomi.multisrc.madara.Madara
import okhttp3.Headers
import java.text.SimpleDateFormat
import java.util.Locale
class FirstKissManga : Madara("1st Kiss", "https://1stkissmanga.com", "en") {
override fun headersBuilder(): Headers.Builder = super.headersBuilder().add("Referer", baseUrl)

View File

@ -3,7 +3,6 @@ package eu.kanade.tachiyomi.extension.en.fizmanga
import eu.kanade.tachiyomi.multisrc.madara.Madara
import okhttp3.Headers
class FizManga : Madara("Fiz Manga", "https://fizmanga.com", "en") {
override fun headersBuilder(): Headers.Builder = super.headersBuilder()
.add("Referer", baseUrl)

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.freemanga
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.madara.Madara
import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit

View File

@ -6,4 +6,5 @@ import java.util.Locale
class FukushuunoYuusha : Madara(
"Fukushuu no Yuusha", "https://fny-scantrad.com",
"fr", dateFormat = SimpleDateFormat("dd/MM/yy", Locale.US))
"fr", dateFormat = SimpleDateFormat("dd/MM/yy", Locale.US)
)

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.hentai20
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.madara.Madara
import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.hentaidexy
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.madara.Madara
import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.hentaimanga
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
@ -11,6 +11,4 @@ class HentaiManga : Madara(
"https://hentaimanga.me",
"en",
dateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US)
) {
}
)

View File

@ -1,11 +1,9 @@
package eu.kanade.tachiyomi.extension.en.hentairead
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
@Nsfw
class Hentairead : Madara("HentaiRead", "https://hentairead.com", "en", dateFormat = SimpleDateFormat("dd/MM/yyyy", Locale.US)) {
}
class Hentairead : Madara("HentaiRead", "https://hentairead.com", "en", dateFormat = SimpleDateFormat("dd/MM/yyyy", Locale.US))

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.hentaiwebtoon
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
@Nsfw
class HentaiWebtoon : Madara("HentaiWebtoon", "https://hentaiwebtoon.com", "en")

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.hentaixcomic
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
@ -11,6 +11,4 @@ class HentaiXComic : Madara(
"https://hentaixcomic.com",
"en",
dateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US)
) {
}
)

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.hentaixyuri
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
@ -11,6 +11,4 @@ class HentaiXYuri : Madara(
"https://hentaixyuri.com",
"en",
dateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US)
) {
}
)

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.hiperdex
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
@Nsfw
class Hiperdex : Madara("Hiperdex", "https://hiperdex.com", "en") {

View File

@ -1,10 +1,10 @@
package eu.kanade.tachiyomi.extension.en.hm2d
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.GET
import okhttp3.Request
import eu.kanade.tachiyomi.source.model.SManga
import okhttp3.Request
import java.text.SimpleDateFormat
import java.util.Locale
@ -24,4 +24,3 @@ class HM2D : Madara(
return GET(baseUrl + manga.url.removePrefix("/hdoujin/"), headers)
}
}

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.hmanhwa
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale

View File

@ -2,7 +2,6 @@ package eu.kanade.tachiyomi.extension.en.immortalupdates
import eu.kanade.tachiyomi.multisrc.madara.Madara
class ImmortalUpdates : Madara("Immortal Updates", "https://immortalupdates.com", "en") {
override val useNewChapterEndpoint: Boolean = true
}

View File

@ -4,5 +4,4 @@ import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
class InmortalScan : Madara("Inmortal Scan", "https://manga.mundodrama.site", "es", SimpleDateFormat("MMMM d, yyyy", Locale("es")))

View File

@ -1,11 +1,10 @@
package eu.kanade.tachiyomi.extension.en.jirocomics
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.source.model.SChapter
import okhttp3.Response
@Nsfw
class JiroComics : Madara("Jiro Comics", "https://jirocomics.com", "en") {
override fun chapterListParse(response: Response): List<SChapter> = super.chapterListParse(response).reversed()

View File

@ -4,6 +4,4 @@ import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
class Kokomanga : Madara("Kokomanga", "https://kokomanga.com", "en", dateFormat = SimpleDateFormat("MMMM d, yyyy", Locale.US)) {
}
class Kokomanga : Madara("Kokomanga", "https://kokomanga.com", "en", dateFormat = SimpleDateFormat("MMMM d, yyyy", Locale.US))

View File

@ -3,8 +3,6 @@ package eu.kanade.tachiyomi.extension.all.leviatanscans
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.source.Source
import eu.kanade.tachiyomi.source.SourceFactory
import eu.kanade.tachiyomi.source.model.SChapter
import okhttp3.Response
class LeviatanScansFactory : SourceFactory {
override fun createSources(): List<Source> = listOf(

View File

@ -9,6 +9,4 @@ class LordManga : Madara(
"https://lordmanga.com",
"en",
dateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US)
) {
}
)

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.madaradex
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
@ -11,6 +11,4 @@ class MadaraDex : Madara(
"https://madaradex.org",
"en",
dateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US)
) {
}
)

View File

@ -4,6 +4,4 @@ import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
class Manga347 : Madara("Manga347", "https://manga347.com", "en", SimpleDateFormat("d MMM, yyyy", Locale.US)) {
}
class Manga347 : Madara("Manga347", "https://manga347.com", "en", SimpleDateFormat("d MMM, yyyy", Locale.US))

View File

@ -7,5 +7,4 @@ import okhttp3.Response
class Manga47 : Madara("Manga47", "https://manga47.net", "en") {
override fun chapterListParse(response: Response): List<SChapter> = super.chapterListParse(response).reversed()
}

View File

@ -9,6 +9,4 @@ class Manga4All : Madara(
"https://manga4all.net",
"en",
dateFormat = SimpleDateFormat("d MMM yyyy", Locale.US)
) {
}
)

View File

@ -2,9 +2,9 @@ package eu.kanade.tachiyomi.extension.en.mangaclash
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.madara.Madara
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit
class MangaClash : Madara(

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.mangadistrict
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
@ -11,6 +11,4 @@ class MangaDistrict : Madara(
"https://mangadistrict.com",
"en",
dateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US)
) {
}
)

View File

@ -4,5 +4,4 @@ import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
class MangaDropOut : Madara("Manga Drop Out", "https://www.mangadropout.xyz", "id", SimpleDateFormat("dd/MM/yyyy", Locale("id")))

View File

@ -9,6 +9,4 @@ class Mangafastcom : Madara(
"https://manga-fast.com",
"en",
dateFormat = SimpleDateFormat("d MMMM'،' yyyy", Locale.US)
) {
}
)

View File

@ -1,12 +1,12 @@
package eu.kanade.tachiyomi.extension.all.mangaforfree
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.source.Source
import eu.kanade.tachiyomi.source.SourceFactory
import java.util.concurrent.TimeUnit
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import okhttp3.OkHttpClient
import eu.kanade.tachiyomi.annotations.Nsfw
import java.util.concurrent.TimeUnit
class MangaForFreeFactory : SourceFactory {
override fun createSources(): List<Source> = listOf(

View File

@ -2,6 +2,4 @@ package eu.kanade.tachiyomi.extension.en.mangagreat
import eu.kanade.tachiyomi.multisrc.madara.Madara
class MangaGreat : Madara("MangaGreat", "https://mangagreat.com", "en") {
}
class MangaGreat : Madara("MangaGreat", "https://mangagreat.com", "en")

View File

@ -1,8 +1,7 @@
package eu.kanade.tachiyomi.extension.en.mangahentai
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
@Nsfw
class MangaHentai : Madara("Manga Hentai", "https://mangahentai.me", "en") {

View File

@ -7,5 +7,4 @@ import okhttp3.Response
class MangaHero : Madara("Manga Hero", "https://mangahero.xyz", "en") {
override fun chapterListParse(response: Response): List<SChapter> = super.chapterListParse(response).reversed()
}

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.mangahz
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.mangakio
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
@ -11,6 +11,4 @@ class MangaKio : Madara(
"https://mangakio.com",
"en",
dateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US)
) {
}
)

View File

@ -3,9 +3,9 @@ package eu.kanade.tachiyomi.extension.en.mangakitsune
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.source.model.SChapter
import okhttp3.Response
import java.text.SimpleDateFormat
import java.util.Locale
import okhttp3.Response
@Nsfw
class MangaKitsune : Madara("MangaKitsune", "https://mangakitsune.com", "en", dateFormat = SimpleDateFormat("yyyy-MM-dd", Locale.US)) {

View File

@ -2,8 +2,6 @@ package eu.kanade.tachiyomi.extension.en.mangakomi
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit

View File

@ -9,6 +9,4 @@ class MangaMe : Madara(
"https://mangame.org",
"en",
dateFormat = SimpleDateFormat("dd.MM.yyyy", Locale.US)
) {
}
)

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.mangamitsu
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
@Nsfw
class MangaMitsu : Madara("Manga Mitsu", "https://mangamitsu.com", "en")

View File

@ -9,6 +9,4 @@ class Manganatoinfo : Madara(
"https://manganato.info",
"en",
dateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US)
) {
}
)

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.mangapl
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.madara.Madara
import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit

View File

@ -4,5 +4,4 @@ import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
class MangasOrigines : Madara("Mangas Origines", "https://mangas-origines.fr", "fr", SimpleDateFormat("dd MMM yyyy", Locale("fr")))

View File

@ -2,14 +2,9 @@ package eu.kanade.tachiyomi.extension.en.mangatk
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.model.SManga
import java.util.Locale
import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
import okhttp3.Request
import org.jsoup.nodes.Document
import org.jsoup.nodes.Element
class MangaTK : Madara("MangaTK", "https://mangatk.com", "en") {
@ -24,7 +19,6 @@ class MangaTK : Madara("MangaTK", "https://mangatk.com", "en") {
return GET("$baseUrl/manga/page/$page?orderby=latest")
}
override val pageListParseSelector = "div.read-content img"
override fun pageListParse(document: Document): List<Page> {

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.mangatuli
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.madara.Madara
import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit

View File

@ -2,8 +2,6 @@ package eu.kanade.tachiyomi.extension.en.mangaus
import eu.kanade.tachiyomi.multisrc.madara.Madara
class MangaUS : Madara("MangaUS", "https://mangaus.xyz", "en") {
override val pageListParseSelector = "img"
}

View File

@ -3,7 +3,5 @@ package eu.kanade.tachiyomi.extension.en.mangaweebs
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
import eu.kanade.tachiyomi.source.model.Page
import org.jsoup.nodes.Document
class MangaWeebs : Madara("Manga Weebs", "https://mangaweebs.in", "en", dateFormat = SimpleDateFormat("dd MMMM HH:mm", Locale.US))

View File

@ -9,6 +9,4 @@ class ManhuaDex : Madara(
"https://manhuadex.com",
"en",
dateFormat = SimpleDateFormat("dd MMMM yyyy", Locale.US)
) {
}
)

View File

@ -2,6 +2,4 @@ package eu.kanade.tachiyomi.extension.en.manhuafast
import eu.kanade.tachiyomi.multisrc.madara.Madara
class ManhuaFast : Madara("ManhuaFast", "https://manhuafast.com", "en") {
}
class ManhuaFast : Madara("ManhuaFast", "https://manhuafast.com", "en")

View File

@ -2,8 +2,6 @@ package eu.kanade.tachiyomi.extension.en.manhuapro
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit

View File

@ -2,6 +2,4 @@ package eu.kanade.tachiyomi.extension.en.manhuaus
import eu.kanade.tachiyomi.multisrc.madara.Madara
class ManhuaUS : Madara("ManhuaUS", "https://manhuaus.com", "en") {
}
class ManhuaUS : Madara("ManhuaUS", "https://manhuaus.com", "en")

View File

@ -9,6 +9,4 @@ class ManhuaZone : Madara(
"https://manhuazone.com",
"en",
dateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US)
) {
}
)

View File

@ -1,11 +1,9 @@
package eu.kanade.tachiyomi.extension.en.manhwa18app
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
@Nsfw
class Manhwa18app : Madara("Manhwa18.app", "https://manhwa18.app", "en", dateFormat = SimpleDateFormat("MMMM d, yyyy", Locale.US)) {
}
class Manhwa18app : Madara("Manhwa18.app", "https://manhwa18.app", "en", dateFormat = SimpleDateFormat("MMMM d, yyyy", Locale.US))

View File

@ -4,13 +4,9 @@ import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.Source
import eu.kanade.tachiyomi.source.SourceFactory
import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.model.SManga
import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
import okhttp3.Request
import org.jsoup.nodes.Document
import org.jsoup.nodes.Element
class Manhwa18CcFactory : SourceFactory {
override fun createSources(): List<Source> = listOf(
@ -37,7 +33,6 @@ abstract class Manhwa18Cc(
override fun popularMangaSelector() = "div.manga-item"
override val popularMangaUrlSelector = "div.data > h3 > a"
override fun popularMangaRequest(page: Int): Request {
return GET("$baseUrl/webtoons/$page?orderby=trending")
}

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.manhwa365
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale

View File

@ -11,6 +11,4 @@ class Manhwa68 : Madara(
"https://manhwa68.com",
"en",
dateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US)
) {
}
)

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.manhwabiz
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.GET
import okhttp3.Request
import java.text.SimpleDateFormat

View File

@ -1,11 +1,9 @@
package eu.kanade.tachiyomi.extension.en.manhwuafans
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
@Nsfw
class Manhwuafans : Madara("Manhwua.fans", "https://manhwua.fans", "en", dateFormat = SimpleDateFormat("yyyy'年'M'月'd", Locale.US)) {
}
class Manhwuafans : Madara("Manhwua.fans", "https://manhwua.fans", "en", dateFormat = SimpleDateFormat("yyyy'年'M'月'd", Locale.US))

View File

@ -62,5 +62,4 @@ class ManyToon : Madara("ManyToon", "https://manytoon.com", "en") {
Genre("Yaoi", "yaoi"),
Genre("Yuri", "yuri"),
)
}

View File

@ -57,5 +57,4 @@ class ManyToonMe : Madara("ManyToon.me", "https://manytoon.me", "en") {
Genre("Yaoi", "yaoi"),
Genre("Yuri", "yuri"),
)
}

View File

@ -1,36 +1,10 @@
package eu.kanade.tachiyomi.extension.en.midnightmessscans
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.network.POST
import eu.kanade.tachiyomi.network.asObservable
import eu.kanade.tachiyomi.source.model.Filter
import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.MangasPage
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.source.model.SManga
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
import eu.kanade.tachiyomi.util.asJsoup
import okhttp3.CacheControl
import okhttp3.FormBody
import okhttp3.Headers
import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.RequestBody.Companion.toRequestBody
import okhttp3.Response
import org.jsoup.nodes.Document
import org.jsoup.nodes.Element
import rx.Observable
import java.text.ParseException
import java.text.SimpleDateFormat
import java.util.Calendar
import java.util.Locale
import java.util.concurrent.TimeUnit
import kotlin.math.absoluteValue
import kotlin.random.Random
@Nsfw
class MidnightMessScans : Madara("Midnight Mess Scans", "https://midnightmess.org", "en") {

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.milftoon
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.GET
import okhttp3.Request

View File

@ -4,6 +4,4 @@ import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
@Nsfw
class OhNoManga : Madara("Oh No Manga", "https://ohnomanga.com", "en") {
}
class OhNoManga : Madara("Oh No Manga", "https://ohnomanga.com", "en")

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.pornwha
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
@Nsfw
class Pornwha : Madara("Pornwha", "https://pornwha.com", "en")

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.ja.rawmangas
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.readadult
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
@Nsfw
class ReadAdult : Madara("Read Adult", "https://readadult.net", "en")

View File

@ -2,7 +2,6 @@ package eu.kanade.tachiyomi.extension.en.scansraw
import eu.kanade.tachiyomi.multisrc.madara.Madara
class ScansRaw : Madara("Scans Raw", "https://scansraw.com", "en") {
override val useNewChapterEndpoint: Boolean = true
}

View File

@ -4,5 +4,4 @@ import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
class ShinobiScans : Madara("ShinobiScans", "https://shinobiscans.com", "it", SimpleDateFormat("MMMM d, yyyy", Locale("it")))

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.tr.siyahmelek
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.skymanga
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
@Nsfw
class Skymanga : Madara("Skymanga", "https://skymanga.co", "en")

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.sunshinebutterflyscans
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
@Nsfw
class SunshineButterflyScans : Madara("Sunshine Butterfly Scans", "https://sunshinebutterflyscan.com", "en")

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.toonily
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
@Nsfw
class Toonily : Madara("Toonily", "https://toonily.com", "en") {

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.toonilynet
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
@Nsfw
class Toonilynet : Madara("Toonily.net", "https://toonily.net", "en")

View File

@ -1,11 +1,9 @@
package eu.kanade.tachiyomi.extension.en.toonmany
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
@Nsfw
class ToonMany : Madara("ToonMany", "https://toonmany.com", "en", dateFormat = SimpleDateFormat("MMMM d, yyyy", Locale.US)) {
}
class ToonMany : Madara("ToonMany", "https://toonmany.com", "en", dateFormat = SimpleDateFormat("MMMM d, yyyy", Locale.US))

View File

@ -2,23 +2,9 @@ package eu.kanade.tachiyomi.extension.tr.turkcemanga
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.network.POST
import eu.kanade.tachiyomi.source.Source
import eu.kanade.tachiyomi.source.SourceFactory
import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga
import okhttp3.CacheControl
import okhttp3.Headers
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.Response
import org.jsoup.nodes.Document
import org.jsoup.nodes.Element
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
class TurkceManga : Madara("Türkçe Manga", "https://turkcemanga.com", "tr") {
override fun popularMangaRequest(page: Int): Request = GET("$baseUrl/page/$page/?s&post_type=wp-manga&m_orderby=views", headers)

View File

@ -1,11 +1,9 @@
package eu.kanade.tachiyomi.extension.en.twentyfourhmanga
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
@Nsfw
class TwentyFourhManga : Madara("24hManga", "https://24hmanga.com", "en", dateFormat = SimpleDateFormat("dd/MM/yyyy", Locale.US)) {
}
class TwentyFourhManga : Madara("24hManga", "https://24hmanga.com", "en", dateFormat = SimpleDateFormat("dd/MM/yyyy", Locale.US))

View File

@ -5,4 +5,3 @@ import java.text.SimpleDateFormat
import java.util.Locale
class UyuyanBalik : Madara("Uyuyan Balik", "https://uyuyanbalik.com/", "tr", SimpleDateFormat("dd MMMM yyyy", Locale.US))

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.webtoon18
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.webtoon69
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
@Nsfw
class WebToon69 : Madara("WebToon69", "https://webtoon69.com", "en")

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.webtoonstop
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
@ -11,6 +11,4 @@ class WebtoonsTOP : Madara(
"https://webtoons.top",
"en",
dateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US)
) {
}
)

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.xmanga
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
@Nsfw
class XManga : Madara("XManga", "https://xmanga.io", "en")

View File

@ -1,11 +1,9 @@
package eu.kanade.tachiyomi.extension.en.yaoihentai
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
@Nsfw
class YaoiHentai : Madara("Yaoi Hentai", "https://yaoihentai.me", "en", dateFormat = SimpleDateFormat("MMMM d, yyyy", Locale.US)) {
}
class YaoiHentai : Madara("Yaoi Hentai", "https://yaoihentai.me", "en", dateFormat = SimpleDateFormat("MMMM d, yyyy", Locale.US))

View File

@ -1,7 +1,7 @@
package eu.kanade.tachiyomi.extension.en.yaoimanga
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.madara.Madara
import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit

View File

@ -1,9 +1,7 @@
package eu.kanade.tachiyomi.extension.en.yaoiscan
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import java.text.SimpleDateFormat
import java.util.Locale
import eu.kanade.tachiyomi.multisrc.madara.Madara
@Nsfw
class YaoiScan : Madara("YaoiScan", "https://yaoiscan.com", "en")

View File

@ -1,11 +1,9 @@
package eu.kanade.tachiyomi.extension.en.yaoitoon
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
@Nsfw
class YaoiToon : Madara("YaoiToon", "https://yaoitoon.com", "en", dateFormat = SimpleDateFormat("d MMMM, yyyy", Locale.US)) {
}
class YaoiToon : Madara("YaoiToon", "https://yaoitoon.com", "en", dateFormat = SimpleDateFormat("d MMMM, yyyy", Locale.US))

View File

@ -1,17 +1,7 @@
package eu.kanade.tachiyomi.extension.en.readattackontitanshingekinokyojinmanga
import eu.kanade.tachiyomi.multisrc.mangacatalog.MangaCatalog
import eu.kanade.tachiyomi.source.model.MangasPage
import eu.kanade.tachiyomi.util.asJsoup
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
import okhttp3.Request
import rx.Observable
import org.jsoup.nodes.Document
import org.jsoup.nodes.Element
class ReadAttackOnTitanShingekiNoKyojinManga : MangaCatalog("Read Attack on Titan Shingeki no Kyojin Manga", "https://ww7.readsnk.com", "en") {
@ -35,7 +25,7 @@ class ReadAttackOnTitanShingekiNoKyojinManga : MangaCatalog("Read Attack on Tita
override fun chapterFromElement(element: Element): SChapter = SChapter.create().apply {
val name1 = element.select(".flex > a.text-gray-900").text()
val name2 = element.select(".flex > div.text-xs").text()
if (name2 == ""){
if (name2 == "") {
name = name1
} else {
name = "$name1 - $name2"

View File

@ -1,16 +1,8 @@
package eu.kanade.tachiyomi.extension.en.readberserkmanga
import eu.kanade.tachiyomi.multisrc.mangacatalog.MangaCatalog
import eu.kanade.tachiyomi.source.model.MangasPage
import eu.kanade.tachiyomi.util.asJsoup
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
import okhttp3.Request
import rx.Observable
import org.jsoup.nodes.Document
import org.jsoup.nodes.Element
@ -34,6 +26,6 @@ class ReadBerserkManga : MangaCatalog("Read Berserk Manga", "https://readberserk
override fun chapterFromElement(element: Element): SChapter = SChapter.create().apply {
name = element.select("td:first-child").text()
url = element.select("a.btn-primary").attr("abs:href")
date_upload = System.currentTimeMillis() //I have no idear how to parse Date stuff
date_upload = System.currentTimeMillis() // I have no idear how to parse Date stuff
}
}

View File

@ -1,8 +1,6 @@
package eu.kanade.tachiyomi.extension.en.readbokunoheroacademiamyheroacademiamanga
import eu.kanade.tachiyomi.multisrc.mangacatalog.MangaCatalog
import eu.kanade.tachiyomi.source.model.MangasPage
import eu.kanade.tachiyomi.util.asJsoup
class ReadBokuNoHeroAcademiaMyHeroAcademiaManga : MangaCatalog("Read Boku no Hero Academia My Hero Academia Manga", "https://ww6.readmha.com", "en") {
override val sourceList = listOf(

View File

@ -1,8 +1,6 @@
package eu.kanade.tachiyomi.extension.en.readchainsawmanmangaonline
import eu.kanade.tachiyomi.multisrc.mangacatalog.MangaCatalog
import eu.kanade.tachiyomi.source.model.MangasPage
import eu.kanade.tachiyomi.util.asJsoup
class ReadChainsawManMangaOnline : MangaCatalog("Read Chainsaw Man Manga Online", "https://ww1.readchainsawman.com", "en") {
override val sourceList = listOf(

View File

@ -1,8 +1,6 @@
package eu.kanade.tachiyomi.extension.en.readdragonballsuperchoumangaonline
import eu.kanade.tachiyomi.multisrc.mangacatalog.MangaCatalog
import eu.kanade.tachiyomi.source.model.MangasPage
import eu.kanade.tachiyomi.util.asJsoup
class ReadDragonBallSuperChouMangaOnline : MangaCatalog("Read Dragon Ball Super Chou Manga Online", "https://ww6.dbsmanga.com", "en") {
override val sourceList = listOf(

View File

@ -1,8 +1,6 @@
package eu.kanade.tachiyomi.extension.en.readdrstonemangaonline
import eu.kanade.tachiyomi.multisrc.mangacatalog.MangaCatalog
import eu.kanade.tachiyomi.source.model.MangasPage
import eu.kanade.tachiyomi.util.asJsoup
class ReadDrStoneMangaOnline : MangaCatalog("Read Dr. Stone Manga Online", "https://ww3.readdrstone.com", "en") {
override val sourceList = listOf(

View File

@ -1,8 +1,6 @@
package eu.kanade.tachiyomi.extension.en.readfairytailedenszeromangaonline
import eu.kanade.tachiyomi.multisrc.mangacatalog.MangaCatalog
import eu.kanade.tachiyomi.source.model.MangasPage
import eu.kanade.tachiyomi.util.asJsoup
class ReadFairyTailEdensZeroMangaOnline : MangaCatalog("Read Fairy Tail & Edens Zero Manga Online", "https://ww4.readfairytail.com", "en") {
override val sourceList = listOf(

View File

@ -1,16 +1,8 @@
package eu.kanade.tachiyomi.extension.en.readgoblinslayermangaonline
import eu.kanade.tachiyomi.multisrc.mangacatalog.MangaCatalog
import eu.kanade.tachiyomi.source.model.MangasPage
import eu.kanade.tachiyomi.util.asJsoup
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
import okhttp3.Request
import rx.Observable
import org.jsoup.nodes.Document
import org.jsoup.nodes.Element
@ -31,6 +23,6 @@ class ReadGoblinSlayerMangaOnline : MangaCatalog("Read Goblin Slayer Manga Onlin
override fun chapterFromElement(element: Element): SChapter = SChapter.create().apply {
name = element.select("td:first-child").text()
url = element.select("a.btn-primary").attr("abs:href")
date_upload = System.currentTimeMillis() //I have no idear how to parse Date stuff
date_upload = System.currentTimeMillis() // I have no idear how to parse Date stuff
}
}

View File

@ -1,8 +1,6 @@
package eu.kanade.tachiyomi.extension.en.readhaikyuumangaonline
import eu.kanade.tachiyomi.multisrc.mangacatalog.MangaCatalog
import eu.kanade.tachiyomi.source.model.MangasPage
import eu.kanade.tachiyomi.util.asJsoup
class ReadHaikyuuMangaOnline : MangaCatalog("Read Haikyuu!! Manga Online", "https://ww6.readhaikyuu.com", "en") {
override val sourceList = listOf(

Some files were not shown because too many files have changed in this diff Show More