parent
b845d9db6e
commit
2140e40bbb
|
@ -5,7 +5,7 @@ ext {
|
||||||
appName = 'Tachiyomi: ReadMangaToday'
|
appName = 'Tachiyomi: ReadMangaToday'
|
||||||
pkgNameSuffix = 'en.readmangatoday'
|
pkgNameSuffix = 'en.readmangatoday'
|
||||||
extClass = '.Readmangatoday'
|
extClass = '.Readmangatoday'
|
||||||
extVersionCode = 7
|
extVersionCode = 8
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,11 +26,13 @@ class Readmangatoday : ParsedHttpSource() {
|
||||||
override val client: OkHttpClient get() = network.cloudflareClient
|
override val client: OkHttpClient get() = network.cloudflareClient
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Search only returns data with this set
|
* Search only returns data with user-agent and x-requeted-with set
|
||||||
|
* Referer needed due to some chapters linking images from other domains
|
||||||
*/
|
*/
|
||||||
override fun headersBuilder() = Headers.Builder().apply {
|
override fun headersBuilder() = Headers.Builder().apply {
|
||||||
add("User-Agent", "Mozilla/5.0 (Windows NT 6.3; WOW64)")
|
add("User-Agent", "Mozilla/5.0 (Windows NT 6.3; WOW64)")
|
||||||
add("X-Requested-With", "XMLHttpRequest")
|
add("X-Requested-With", "XMLHttpRequest")
|
||||||
|
add("Referer", baseUrl)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun popularMangaRequest(page: Int): Request {
|
override fun popularMangaRequest(page: Int): Request {
|
||||||
|
|
Loading…
Reference in New Issue