diff --git a/src/ru/mintmanga/build.gradle b/src/ru/mintmanga/build.gradle index 9a385a629..d78434822 100644 --- a/src/ru/mintmanga/build.gradle +++ b/src/ru/mintmanga/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Mintmanga' pkgNameSuffix = 'ru.mintmanga' extClass = '.Mintmanga' - extVersionCode = 33 + extVersionCode = 34 } dependencies { diff --git a/src/ru/mintmanga/src/eu/kanade/tachiyomi/extension/ru/mintmanga/Mintmanga.kt b/src/ru/mintmanga/src/eu/kanade/tachiyomi/extension/ru/mintmanga/Mintmanga.kt index bbfc4f259..87c22b9e6 100644 --- a/src/ru/mintmanga/src/eu/kanade/tachiyomi/extension/ru/mintmanga/Mintmanga.kt +++ b/src/ru/mintmanga/src/eu/kanade/tachiyomi/extension/ru/mintmanga/Mintmanga.kt @@ -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) : Filter.Group("Прочее", moren) private class FilList(fils: List) : Filter.Group("Фильтры", 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()), diff --git a/src/ru/readmanga/AndroidManifest.xml b/src/ru/readmanga/AndroidManifest.xml index 8c4582e1e..711a7fa3e 100644 --- a/src/ru/readmanga/AndroidManifest.xml +++ b/src/ru/readmanga/AndroidManifest.xml @@ -16,7 +16,7 @@ diff --git a/src/ru/readmanga/build.gradle b/src/ru/readmanga/build.gradle index a505a936a..917cf9d0f 100644 --- a/src/ru/readmanga/build.gradle +++ b/src/ru/readmanga/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Readmanga' pkgNameSuffix = 'ru.readmanga' extClass = '.Readmanga' - extVersionCode = 32 + extVersionCode = 33 } dependencies { diff --git a/src/ru/readmanga/src/eu/kanade/tachiyomi/extension/ru/readmanga/Readmanga.kt b/src/ru/readmanga/src/eu/kanade/tachiyomi/extension/ru/readmanga/Readmanga.kt index d1eef5d04..438698a7b 100644 --- a/src/ru/readmanga/src/eu/kanade/tachiyomi/extension/ru/readmanga/Readmanga.kt +++ b/src/ru/readmanga/src/eu/kanade/tachiyomi/extension/ru/readmanga/Readmanga.kt @@ -343,12 +343,6 @@ class Readmanga : ParsedHttpSource() { private class More(moren: List) : Filter.Group("Прочее", moren) private class FilList(fils: List) : Filter.Group("Фильтры", 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()),