[RU]Mintmanga User-Agent special (again) and changed domain Readmanga to open from browser (#9504)
* [RU]Mintmanga User-Agent special (again) * clean
This commit is contained in:
parent
d0a02d50f9
commit
eba9fad248
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'Mintmanga'
|
||||
pkgNameSuffix = 'ru.mintmanga'
|
||||
extClass = '.Mintmanga'
|
||||
extVersionCode = 33
|
||||
extVersionCode = 34
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
@ -41,6 +41,11 @@ class Mintmanga : ParsedHttpSource() {
|
|||
override val client: OkHttpClient = network.client.newBuilder()
|
||||
.addNetworkInterceptor(rateLimitInterceptor).build()
|
||||
|
||||
override fun headersBuilder() = Headers.Builder().apply {
|
||||
add("User-Agent", "mintmangafun")
|
||||
add("Referer", baseUrl)
|
||||
}
|
||||
|
||||
override fun popularMangaRequest(page: Int): Request =
|
||||
GET("$baseUrl/list?sortType=rate&offset=${70 * (page - 1)}", headers)
|
||||
|
||||
|
@ -336,11 +341,6 @@ class Mintmanga : ParsedHttpSource() {
|
|||
private class More(moren: List<Genre>) : Filter.Group<Genre>("Прочее", moren)
|
||||
private class FilList(fils: List<Genre>) : Filter.Group<Genre>("Фильтры", fils)
|
||||
|
||||
/* [...document.querySelectorAll("tr.advanced_option:nth-child(1) > td:nth-child(3) span.js-link")]
|
||||
* .map(el => `Genre("${el.textContent.trim()}", $"{el.getAttribute('onclick')
|
||||
* .substr(31,el.getAttribute('onclick').length-33)"})`).join(',\n')
|
||||
* on https://mintmanga.live/search/advanced
|
||||
*/
|
||||
override fun getFilterList() = FilterList(
|
||||
OrderBy(),
|
||||
Category(getCategoryList()),
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
<!-- ReadmangaActivity sites can be added here. -->
|
||||
<data
|
||||
android:host="readmanga.live"
|
||||
android:host="readmanga.io"
|
||||
android:pathPattern="/..*/vol..*"
|
||||
android:scheme="https" />
|
||||
</intent-filter>
|
||||
|
|
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'Readmanga'
|
||||
pkgNameSuffix = 'ru.readmanga'
|
||||
extClass = '.Readmanga'
|
||||
extVersionCode = 32
|
||||
extVersionCode = 33
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
@ -343,12 +343,6 @@ class Readmanga : ParsedHttpSource() {
|
|||
private class More(moren: List<Genre>) : Filter.Group<Genre>("Прочее", moren)
|
||||
private class FilList(fils: List<Genre>) : Filter.Group<Genre>("Фильтры", fils)
|
||||
|
||||
/* [...document.querySelectorAll("tr.advanced_option:nth-child(1) > td:nth-child(3) span.js-link")]
|
||||
* .map(el => `Genre("${el.textContent.trim()}", $"{el.getAttribute('onclick')
|
||||
* .substr(31,el.getAttribute('onclick').length-33)"})`).join(',\n')
|
||||
* on https://readmanga.me/search/advanced
|
||||
*/
|
||||
|
||||
override fun getFilterList() = FilterList(
|
||||
OrderBy(),
|
||||
Category(getCategoryList()),
|
||||
|
|
Loading…
Reference in New Issue