Madara - Fix 1stkiss, Add TeabeerComics (#2066)

Madara - Fix 1stkiss, Add TeabeerComics
This commit is contained in:
happywillow0 2020-01-14 07:35:33 -05:00 committed by arkon
parent d0eb982727
commit 031ed7b130
2 changed files with 6 additions and 11 deletions

View File

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

View File

@ -64,7 +64,8 @@ class MadaraFactory : SourceFactory {
Toonily(),
PlotTwistScan(),
MangaKomi(),
Wakamics()
Wakamics(),
TeabeerComics()
)
}
@ -137,15 +138,7 @@ class MangazukiClubKO : Madara("Mangazuki.club", "https://mangazuki.club/", "ko"
class FirstKissManga : Madara("1st Kiss", "https://1stkissmanga.com/", "en",
dateFormat = SimpleDateFormat("dd MMM yyyy", Locale.US)) {
override val pageListParseSelector = "div.reading-content img"
private val cdnUrl = "1stkissmanga.b-cdn.net"
override fun imageRequest(page: Page): Request {
val cdnHeaders = Headers.Builder().apply {
add("Referer", baseUrl)
add("Host", cdnUrl)
}.build()
return if (page.imageUrl!!.contains(cdnUrl)) GET(page.imageUrl!!, cdnHeaders) else GET(page.imageUrl!!, headers)
}
override fun headersBuilder(): Headers.Builder = super.headersBuilder().add("Referer", baseUrl)
}
class MangaSY : Madara("Manga SY", "https://www.mangasy.com/", "en")
@ -397,3 +390,5 @@ class MangaKomi : Madara("MangaKomi", "https://mangakomi.com", "en")
class Wakamics : Madara("Wakamics", "https://wakamics.com", "en")
class TeabeerComics : Madara("Teabeer Comics", "https://teabeercomics.com/", "en")