9
10
Fork
You've already forked cloudstream-extensions-multilingual
39

sayonara Gomunime, best anime site EVER..!! #11

Merged
hexated merged 2 commits from provider into master 2022年09月03日 04:19:30 +02:00
hexated commented 2022年09月02日 06:31:34 +02:00 (Migrated from github.com)
Copy link

also added gomunimeis

also added gomunimeis
LagradOst (Migrated from github.com) approved these changes 2022年09月02日 19:05:37 +02:00
@ -0,0 +77,4 @@
override suspend fun search(query: String): List<SearchResponse> {
return app.get(
"$mainUrl/my-ajax?page=1&limit=10&action=load_search_movie&keyword=$query",
LagradOst (Migrated from github.com) commented 2022年09月02日 19:04:20 +02:00
Copy link

because this is ajax you can override quicksearch to use search

because this is ajax you can override quicksearch to use search
hexated (Migrated from github.com) reviewed 2022年09月02日 20:15:28 +02:00
@ -0,0 +77,4 @@
override suspend fun search(query: String): List<SearchResponse> {
return app.get(
"$mainUrl/my-ajax?page=1&limit=10&action=load_search_movie&keyword=$query",
hexated (Migrated from github.com) commented 2022年09月02日 20:15:28 +02:00
Copy link

do you mean i have to duplicate this code like this ?

override suspend fun quickSearch(query: String): List<SearchResponse> {
 return app.get(
 "$mainUrl/my-ajax?page=1&limit=10&action=load_search_movie&keyword=$query",
 referer = "$mainUrl/search/?keyword=$query",
 headers = mapOf("X-Requested-With" to "XMLHttpRequest")
 ).parsedSafe<Responses>()?.data
 ?.mapNotNull { media ->
 media.toSearchResponse()
 } ?: throw ErrorLoadingException("Invalid Json reponse")
 }
 override suspend fun search(query: String): List<SearchResponse> {
 return app.get(
 "$mainUrl/my-ajax?page=1&limit=10&action=load_search_movie&keyword=$query",
 referer = "$mainUrl/search/?keyword=$query",
 headers = mapOf("X-Requested-With" to "XMLHttpRequest")
 ).parsedSafe<Responses>()?.data
 ?.mapNotNull { media ->
 media.toSearchResponse()
 } ?: throw ErrorLoadingException("Invalid Json reponse")
 }
do you mean i have to duplicate this code like this ? ```kotlin override suspend fun quickSearch(query: String): List<SearchResponse> { return app.get( "$mainUrl/my-ajax?page=1&limit=10&action=load_search_movie&keyword=$query", referer = "$mainUrl/search/?keyword=$query", headers = mapOf("X-Requested-With" to "XMLHttpRequest") ).parsedSafe<Responses>()?.data ?.mapNotNull { media -> media.toSearchResponse() } ?: throw ErrorLoadingException("Invalid Json reponse") } override suspend fun search(query: String): List<SearchResponse> { return app.get( "$mainUrl/my-ajax?page=1&limit=10&action=load_search_movie&keyword=$query", referer = "$mainUrl/search/?keyword=$query", headers = mapOf("X-Requested-With" to "XMLHttpRequest") ).parsedSafe<Responses>()?.data ?.mapNotNull { media -> media.toSearchResponse() } ?: throw ErrorLoadingException("Invalid Json reponse") } ```
LagradOst (Migrated from github.com) reviewed 2022年09月03日 03:09:52 +02:00
@ -0,0 +77,4 @@
override suspend fun search(query: String): List<SearchResponse> {
return app.get(
"$mainUrl/my-ajax?page=1&limit=10&action=load_search_movie&keyword=$query",
LagradOst (Migrated from github.com) commented 2022年09月03日 03:09:52 +02:00
Copy link

no, override suspend fun quickSearch(query: String): List = search(query)

no, override suspend fun quickSearch(query: String): List<SearchResponse> = search(query)
hexated commented 2022年09月03日 03:43:07 +02:00 (Migrated from github.com)
Copy link

ready to merge

ready to merge
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cloudstream/cloudstream-extensions-multilingual!11
Reference in a new issue
cloudstream/cloudstream-extensions-multilingual
No description provided.
Delete branch "provider"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?