MangaPark - force network request for chapters (#3471)
This commit is contained in:
parent
59bb99ed49
commit
1ad4002be9
|
@ -5,7 +5,7 @@ ext {
|
||||||
appName = 'Tachiyomi: MangaPark'
|
appName = 'Tachiyomi: MangaPark'
|
||||||
pkgNameSuffix = 'en.mangapark'
|
pkgNameSuffix = 'en.mangapark'
|
||||||
extClass = '.MangaPark'
|
extClass = '.MangaPark'
|
||||||
extVersionCode = 13
|
extVersionCode = 14
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@ import java.text.SimpleDateFormat
|
||||||
import java.util.Calendar
|
import java.util.Calendar
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
import kotlin.math.absoluteValue
|
import kotlin.math.absoluteValue
|
||||||
|
import okhttp3.CacheControl
|
||||||
import okhttp3.Request
|
import okhttp3.Request
|
||||||
import okhttp3.Response
|
import okhttp3.Response
|
||||||
import org.json.JSONArray
|
import org.json.JSONArray
|
||||||
|
@ -117,6 +118,11 @@ class MangaPark : ConfigurableSource, ParsedHttpSource() {
|
||||||
description = document.getElementsByClass("summary").text().trim()
|
description = document.getElementsByClass("summary").text().trim()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// force network to make sure chapter prefs take effect
|
||||||
|
override fun chapterListRequest(manga: SManga): Request {
|
||||||
|
return GET(baseUrl + manga.url, headers, CacheControl.FORCE_NETWORK)
|
||||||
|
}
|
||||||
|
|
||||||
override fun chapterListParse(response: Response): List<SChapter> {
|
override fun chapterListParse(response: Response): List<SChapter> {
|
||||||
fun List<SChapter>.getMissingChapters(allChapters: List<SChapter>): List<SChapter> {
|
fun List<SChapter>.getMissingChapters(allChapters: List<SChapter>): List<SChapter> {
|
||||||
val chapterNums = this.map { it.chapter_number }
|
val chapterNums = this.map { it.chapter_number }
|
||||||
|
|
Loading…
Reference in New Issue