animeworld quicksearch fix

This commit is contained in:
antonydp 2022-11-07 16:54:09 +01:00 committed by GitHub
parent 93991f66ea
commit edd50f01f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -167,7 +167,8 @@ class AnimeWorldProvider : MainAPI() {
@JsonProperty("link") val link: String,
@JsonProperty("animeTypeName") val type: String,
@JsonProperty("language") val language: String,
@JsonProperty("jtitle") val otherTitle: String
@JsonProperty("jtitle") val otherTitle: String,
@JsonProperty("identifier") val id: String
)
override suspend fun quickSearch(query: String): List<SearchResponse>? {
@ -183,7 +184,7 @@ class AnimeWorldProvider : MainAPI() {
"it" -> true
else -> false
}
newAnimeSearchResponse(anime.name, anime.link, type) {
newAnimeSearchResponse(anime.name, "$mainUrl/play/${anime.link}.${anime.id}", type) {
addDubStatus(dub)
this.otherName = anime.otherTitle
this.posterUrl = anime.image