MangaArabTeam source URL changed (#4206)

* Update build.gradle

* MangaArabTeam source URL changed

* Add ShoujoHearts, fix some dates

Co-authored-by: snakedoc83 <mikepeterson83@gmail.com>
This commit is contained in:
Shashank Pujari 2020-08-26 10:51:50 +05:30 committed by GitHub
parent 225fd3d960
commit d7981d8b16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 7 deletions

View File

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

View File

@ -162,7 +162,8 @@ class MadaraFactory : SourceFactory {
YaoiToshokan(),
YokaiJump(),
ZManga(),
ZinManga()
ZinManga(),
ShoujoHearts()
// Removed by request of site owner
// EarlyManga(),
// MangaGecesi(),
@ -645,7 +646,7 @@ class HunterFansub : Madara("Hunter Fansub", "https://hunterfansub.com", "es") {
override val popularMangaUrlSelector = "div.post-title a:last-child"
}
class MangaArabTeam : Madara("مانجا عرب تيم Manga Arab Team", "https://mangakm.com", "ar") {
class MangaArabTeam : Madara("مانجا عرب تيم Manga Arab Team", "https://mangaarabteam.com", "ar") {
override fun imageRequest(page: Page): Request {
return GET(page.imageUrl!!.replace("http:", "https:"))
}
@ -693,7 +694,7 @@ class Toonily : Madara("Toonily", "https://toonily.com", "en") {
)
}
class MangaKomi : Madara("MangaKomi", "https://mangakomi.com", "en", SimpleDateFormat("MM/dd/yyyy", Locale.US))
class MangaKomi : Madara("MangaKomi", "https://mangakomi.com", "en")
class Wakamics : Madara("Wakamics", "https://wakamics.com", "en")
@ -899,7 +900,7 @@ class DecadenceScans : Madara("Decadence Scans", "https://reader.decadencescans.
class MangaRockTeam : Madara("Manga Rock Team", "https://mangarockteam.com", "en")
class MixedManga : Madara("Mixed Manga", "https://mixedmanga.com", "en") {
class MixedManga : Madara("Mixed Manga", "https://mixedmanga.com", "en", SimpleDateFormat("d MMM yyyy", Locale.US)) {
override fun headersBuilder(): Headers.Builder = super.headersBuilder().add("Referer", baseUrl)
}
@ -1265,3 +1266,11 @@ class ComicsValley : Madara("Comics Valley", "https://comicsvalley.com", "hi")
class FriendlyTranslations : Madara("Friendly Translations", "https://friendlytranslationsscan.website", "en")
class Wakascan : Madara("Wakascan", "https://wakascan.com", "fr")
class ShoujoHearts : Madara("ShoujoHearts", "http://shoujohearts.com", "en") {
override fun popularMangaRequest(page: Int): Request =
POST("$baseUrl/reader/wp-admin/admin-ajax.php", formHeaders, formBuilder(page, true).build(), CacheControl.FORCE_NETWORK)
override fun latestUpdatesRequest(page: Int): Request =
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/"
}