Add Neox Scanlator and Manga Lord (#2499)

Add Neox Scanlator and Manga Lord
This commit is contained in:
Alessandro Jean 2020-03-24 22:30:48 -03:00 committed by GitHub
parent 85bfd0da30
commit c8f3eea405
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Madara (multiple sources)'
pkgNameSuffix = "all.madara"
extClass = '.MadaraFactory'
extVersionCode = 61
extVersionCode = 62
libVersion = '1.2'
}

View File

@ -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")