Update extensions due to sites update. (#858)
Update extensions due to sites update.
This commit is contained in:
parent
6d96b3af3c
commit
dc06efd714
|
@ -5,7 +5,7 @@ ext {
|
|||
appName = 'Tachiyomi: JMana'
|
||||
pkgNameSuffix = 'ko.jmana'
|
||||
extClass = '.JMana'
|
||||
extVersionCode = 3
|
||||
extVersionCode = 4
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -9,13 +9,14 @@ import okhttp3.Request
|
|||
import okhttp3.Response
|
||||
import org.jsoup.nodes.Document
|
||||
import org.jsoup.nodes.Element
|
||||
import java.text.SimpleDateFormat
|
||||
|
||||
/**
|
||||
* JMana Source
|
||||
**/
|
||||
class JMana : ParsedHttpSource() {
|
||||
override val name = "JMana"
|
||||
override val baseUrl = "https://jmana1.com"
|
||||
override val baseUrl = "https://mangahide.com"
|
||||
override val lang: String = "ko"
|
||||
|
||||
// Latest updates currently returns duplicate manga as it separates manga into chapters
|
||||
|
@ -87,6 +88,7 @@ class JMana : ParsedHttpSource() {
|
|||
chapter.url = linkElement.attr("href").replace("book/", "book_frame/")
|
||||
chapter.chapter_number = parseChapterNumber(rawName)
|
||||
chapter.name = rawName.trim()
|
||||
chapter.date_upload = parseChapterDate(element.select("ul > li:not(.fcR)").last().text())
|
||||
return chapter
|
||||
}
|
||||
|
||||
|
@ -104,6 +106,15 @@ class JMana : ParsedHttpSource() {
|
|||
}
|
||||
}
|
||||
|
||||
private fun parseChapterDate(date: String): Long {
|
||||
return try {
|
||||
SimpleDateFormat("yyyy-MM-dd").parse(date).time
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
0
|
||||
}
|
||||
}
|
||||
|
||||
override fun pageListParse(document: Document): List<Page> {
|
||||
val pages = mutableListOf<Page>()
|
||||
try {
|
||||
|
|
|
@ -5,7 +5,7 @@ ext {
|
|||
appName = 'Tachiyomi: MangaShow.Me'
|
||||
pkgNameSuffix = 'ko.mangashowme'
|
||||
extClass = '.MangaShowMe'
|
||||
extVersionCode = 5
|
||||
extVersionCode = 6
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ internal class ImageDecoderInterceptor : Interceptor {
|
|||
val chapter = reqUrl.queryParameter("ch")!!
|
||||
val imageUrl = url.split("?").first()
|
||||
|
||||
val response = chain.proceed(GET(imageUrl))
|
||||
val response = chain.proceed(GET("$imageUrl?v=2"))
|
||||
val res = response.body()!!.byteStream().use {
|
||||
decodeImageRequest(version, chapter, viewCnt, it)
|
||||
}
|
||||
|
|
|
@ -211,6 +211,10 @@ class MangaShowMe : ParsedHttpSource() {
|
|||
|
||||
(0 until imageUrls.length())
|
||||
.map { imageUrls.getString(it) }
|
||||
.map {
|
||||
it.replace(".mangashow.me", ".mangashow3.me")
|
||||
.replace(".mangashow2.me", ".mangashow3.me")
|
||||
}
|
||||
.forEach { pages.add(Page(pages.size, "", decoder.request(it))) }
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
|
|
Loading…
Reference in New Issue