Madara Updates (#2332)

Add MangaBob
Fix EarlyManga
Update APC UserAgent
This commit is contained in:
happywillow0 2020-03-01 14:54:53 -05:00 committed by GitHub
parent 55bd6bf3a2
commit d4986b08f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 4 deletions

View File

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

View File

@ -74,7 +74,8 @@ class MadaraFactory : SourceFactory {
MangaAction(),
NijiTranslations(),
IchirinNoHanaYuri(),
LilyManga()
LilyManga(),
MangaBob()
)
}
@ -221,7 +222,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/80.0.3987.106 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.122 Safari/537.36"
override fun headersBuilder(): Headers.Builder = Headers.Builder()
.add("User-Agent", userAgent)
.add("Referer", "$baseUrl/manga/?m_orderby=views")
@ -441,7 +442,11 @@ class Manhuasnet : Madara("Manhuas.net", "https://manhuas.net", "en")
class MangaLaw : Madara("MangaLaw", "https://mangalaw.com", "ja", SimpleDateFormat("MM/dd/yyyy", Locale.US))
class EarlyManga : Madara("EarlyManga", "https://earlymanga.website", "en")
class EarlyManga : Madara("EarlyManga", "https://earlymanga.website", "en"){
override fun headersBuilder(): Headers.Builder {
return super.headersBuilder().add("Referer","$baseUrl/manga/")
}
}
class MangaTX : Madara("MangaTX", "https://mangatx.com", "en")
@ -457,3 +462,5 @@ class IchirinNoHanaYuri : Madara("Ichirin No Hana Yuri", "https://ichirinnohanay
class LilyManga: Madara("Lily Manga","https://lilymanga.com","en",SimpleDateFormat("yyyy-MM-dd", Locale.US))
class MangaBob: Madara("MangaBob","https://mangabob.com","en")