Madara - add AlianzaMarcial (#4281)

This commit is contained in:
Mike 2020-09-01 02:35:06 -04:00 committed by GitHub
parent f4916310f1
commit 098a02d97c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 11 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Madara (multiple sources)' extName = 'Madara (multiple sources)'
pkgNameSuffix = "all.madara" pkgNameSuffix = "all.madara"
extClass = '.MadaraFactory' extClass = '.MadaraFactory'
extVersionCode = 131 extVersionCode = 132
libVersion = '1.2' libVersion = '1.2'
containsNsfw = true containsNsfw = true
} }

View File

@ -157,7 +157,8 @@ class MadaraFactory : SourceFactory {
YokaiJump(), YokaiJump(),
ZManga(), ZManga(),
ZinManga(), ZinManga(),
ShoujoHearts() ShoujoHearts(),
AlianzaMarcial()
// Removed by request of site owner // Removed by request of site owner
// EarlyManga(), // EarlyManga(),
// MangaGecesi(), // MangaGecesi(),
@ -1203,15 +1204,7 @@ class WordExcerpt : Madara("Word Excerpt", "https://wordexcerpt.com", "en") {
} }
// mostly novels // mostly novels
class WoopRead : Madara("WoopRead", "https://woopread.com", "en") { class WoopRead : Madara("WoopRead", "https://woopread.com", "en")
override fun popularMangaRequest(page: Int): Request = GET("$baseUrl/?s&post_type=wp-manga&genre[0]=manhua&genre[1]=manhwa&m_orderby=views", headers)
override fun popularMangaParse(response: Response) = searchMangaParse(response)
override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/?s&post_type=wp-manga&genre[0]=manhua&genre[1]=manhwa&m_orderby=latest", headers)
override fun latestUpdatesParse(response: Response) = searchMangaParse(response)
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request =
GET("$baseUrl/?s=$query&post_type=wp-manga&genre[0]=manhua&genre[1]=manhwa&m_orderby=latest", headers)
override fun getFilterList(): FilterList = FilterList()
}
class Ninjavi : Madara("Ninjavi", "https://ninjavi.com", "ar") class Ninjavi : Madara("Ninjavi", "https://ninjavi.com", "ar")
@ -1243,3 +1236,5 @@ class ShoujoHearts : Madara("ShoujoHearts", "http://shoujohearts.com", "en") {
POST("$baseUrl/reader/wp-admin/admin-ajax.php", formHeaders, formBuilder(page, false).build(), CacheControl.FORCE_NETWORK) POST("$baseUrl/reader/wp-admin/admin-ajax.php", formHeaders, formBuilder(page, false).build(), CacheControl.FORCE_NETWORK)
override fun searchPage(page: Int): String = "reader/page/$page/" override fun searchPage(page: Int): String = "reader/page/$page/"
} }
class AlianzaMarcial : Madara("AlianzaMarcial", "https://alianzamarcial.xyz", "es")