[Add] Madara - Klik Manga [ID] (#2190)

* Update build.gradle

* Add KlikManga
This commit is contained in:
happywillow0 2020-02-05 18:56:32 -05:00 committed by GitHub
parent 98ff250c7c
commit ab7037fc8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

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

View File

@ -66,7 +66,8 @@ class MadaraFactory : SourceFactory {
GoldenManga(),
Mangalek(),
AstralLibrary(),
NovelFrance()
NovelFrance(),
KlikManga()
)
}
@ -213,7 +214,7 @@ class GetManhwa : Madara("GetManhwa", "https://getmanhwa.co", "en")
class AllPornComic : Madara("AllPornComic", "https://allporncomic.com", "en") {
override val client: OkHttpClient = network.client
private val userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36"
private val userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36"
override fun headersBuilder(): Headers.Builder = Headers.Builder()
.add("User-Agent", userAgent)
.add("Referer", "$baseUrl/manga/?m_orderby=views")
@ -418,3 +419,6 @@ class AstralLibrary : Madara("Astral Library", "https://astrallibrary.net", "en"
}
class NovelFrance : Madara("Novel France", "http://novel-france.fr", "fr", SimpleDateFormat("dd MMM yyyy", Locale.FRENCH))
class KlikManga : Madara("KlikManga", "https://klikmanga.com", "id", SimpleDateFormat("MMMM dd, yyyy", Locale("id")))