Erofus: encode search (#8726)
This commit is contained in:
parent
e5f3f65c25
commit
8e13bcd5b6
@ -3,7 +3,7 @@ ext {
|
|||||||
extClass = '.Erofus'
|
extClass = '.Erofus'
|
||||||
themePkg = 'eromuse'
|
themePkg = 'eromuse'
|
||||||
baseUrl = 'https://www.erofus.com'
|
baseUrl = 'https://www.erofus.com'
|
||||||
overrideVersionCode = 1
|
overrideVersionCode = 2
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,12 @@ class Erofus : EroMuse("Erofus", "https://www.erofus.com") {
|
|||||||
|
|
||||||
if (query.isNotBlank()) {
|
if (query.isNotBlank()) {
|
||||||
// TODO possibly add genre search if a decent list of them can be built
|
// TODO possibly add genre search if a decent list of them can be built
|
||||||
pageStack.addLast(StackItem("$baseUrl/?search=$query&sort=$currentSortingMode&page=1", SEARCH_RESULTS_OR_BASE))
|
val url = baseUrl.toHttpUrl().newBuilder()
|
||||||
|
.addQueryParameter("search", query)
|
||||||
|
.addQueryParameter("sort", currentSortingMode)
|
||||||
|
.addQueryParameter("page", "1")
|
||||||
|
|
||||||
|
pageStack.addLast(StackItem(url.toString(), SEARCH_RESULTS_OR_BASE))
|
||||||
} else {
|
} else {
|
||||||
val albumFilter = filterList.filterIsInstance<AlbumFilter>().first().selection()
|
val albumFilter = filterList.filterIsInstance<AlbumFilter>().first().selection()
|
||||||
val url = (baseUrl + albumFilter.pathSegments).toHttpUrl().newBuilder()
|
val url = (baseUrl + albumFilter.pathSegments).toHttpUrl().newBuilder()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user