[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:
e-shl 2021-10-18 14:15:37 +05:00 committed by GitHub
parent d0a02d50f9
commit eba9fad248
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 14 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Mintmanga'
pkgNameSuffix = 'ru.mintmanga'
extClass = '.Mintmanga'
extVersionCode = 33
extVersionCode = 34
}
dependencies {

View File

@ -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()),

View File

@ -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>

View File

@ -5,7 +5,7 @@ ext {
extName = 'Readmanga'
pkgNameSuffix = 'ru.readmanga'
extClass = '.Readmanga'
extVersionCode = 32
extVersionCode = 33
}
dependencies {

View File

@ -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()),