Fix for truyenacademy extension (#62)
* Create build.gradle * Fix for truyenacademy extension Extension does not show up when installed. Here's a quick fix to make it work * Update build.gradle * Update AcademyVN.kt * Rename AcademyVN.kt to Academyvn.kt
This commit is contained in:
parent
3691fb5ee3
commit
84c3a7caee
|
@ -3,8 +3,8 @@ apply plugin: 'kotlin-android'
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
appName = 'Tachiyomi: AcademyVN'
|
appName = 'Tachiyomi: AcademyVN'
|
||||||
pkgNameSuffix = "vi.AcademyVN"
|
pkgNameSuffix = "vi.academyvn"
|
||||||
extClass = '.AcademyVN'
|
extClass = '.Academyvn'
|
||||||
extVersionCode = 1
|
extVersionCode = 1
|
||||||
extVersionSuffix = 1
|
extVersionSuffix = 1
|
||||||
libVersion = '1.0'
|
libVersion = '1.0'
|
||||||
|
|
|
@ -52,7 +52,7 @@ class Academyvn : ParsedHttpSource() {
|
||||||
override fun latestUpdatesNextPageSelector(): String = "li > a:contains(»)"
|
override fun latestUpdatesNextPageSelector(): String = "li > a:contains(»)"
|
||||||
|
|
||||||
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
|
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
|
||||||
val url = HttpUrl.parse("$baseUrl/searchs?").newBuilder().addQueryParameter("keyword", query)
|
val url = HttpUrl.parse("$baseUrl/searchs?")!!.newBuilder().addQueryParameter("keyword", query)
|
||||||
(if (filters.isEmpty()) getFilterList() else filters).forEach { filter ->
|
(if (filters.isEmpty()) getFilterList() else filters).forEach { filter ->
|
||||||
when (filter) {
|
when (filter) {
|
||||||
is Type -> url.addQueryParameter("type", if (filter.state == 0) "-1" else type.indexOf(filter.state.toString()).toString())
|
is Type -> url.addQueryParameter("type", if (filter.state == 0) "-1" else type.indexOf(filter.state.toString()).toString())
|
Loading…
Reference in New Issue