Skip to content

Commit

Permalink
Fixed Search in HStream
Browse files Browse the repository at this point in the history
  • Loading branch information
ni3x committed Dec 12, 2024
1 parent 55ea329 commit e99ebc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/en/hstream/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ext {
extName = 'Hstream'
extClass = '.Hstream'
extVersionCode = 8
extVersionCode = 9
isNsfw = true
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class Hstream : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
val params = HstreamFilters.getSearchParameters(filters)

val url = "$baseUrl/search".toHttpUrl().newBuilder().apply {
if (query.isNotBlank()) addQueryParameter("s", query)
if (query.isNotBlank()) addQueryParameter("search", query)
addQueryParameter("page", page.toString())
addQueryParameter("order", params.order)
params.genres.forEachIndexed { index, genre -> addQueryParameter("tags[$index]", genre) }
Expand Down

0 comments on commit e99ebc4

Please sign in to comment.