diff --git a/src/all/madara/build.gradle b/src/all/madara/build.gradle index ca9bc43ba..a37a487e2 100644 --- a/src/all/madara/build.gradle +++ b/src/all/madara/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: Madara (multiple sources)' pkgNameSuffix = "all.madara" extClass = '.MadaraFactory' - extVersionCode = 61 + extVersionCode = 62 libVersion = '1.2' } diff --git a/src/all/madara/src/eu/kanade/tachiyomi/extension/all/madara/MadaraFactory.kt b/src/all/madara/src/eu/kanade/tachiyomi/extension/all/madara/MadaraFactory.kt index 38015f5f3..5f73e0a52 100644 --- a/src/all/madara/src/eu/kanade/tachiyomi/extension/all/madara/MadaraFactory.kt +++ b/src/all/madara/src/eu/kanade/tachiyomi/extension/all/madara/MadaraFactory.kt @@ -81,7 +81,9 @@ class MadaraFactory : SourceFactory { MangaKiss(), MangaDods(), MangaWOW(), - MangaStream() + MangaStream(), + NeoxScanlator(), + MangaLord() ) } @@ -489,3 +491,18 @@ class MangaWOW: Madara("MangaWOW", "https://mangawow.com", "tr") class MangaStream: Madara("MangaStream", "https://www.mangastream.cc", "en") +class NeoxScanlator : Madara("Neox Scanlator", "https://neoxscan.com/newsite", "pt-BR", SimpleDateFormat("dd 'de' MMM 'de' yyyy", Locale("pt", "BR"))) { + override fun headersBuilder(): Headers.Builder = Headers.Builder() + .add("User-Agent", USER_AGENT) + .add("Referer", baseUrl) + .add("Origin", baseUrl) + + // Only status and order by filter work. + override fun getFilterList(): FilterList = FilterList(super.getFilterList().slice(3 .. 4)) + + companion object { + private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36" + } +} + +class MangaLord : Madara("Manga Lord", "https://mangalord.com", "en")