Italian providers fixes and improvements (#47)

This commit is contained in:
antonydp 2022-12-07 00:35:00 +01:00 committed by GitHub
parent 03539a408b
commit b4366f6368
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 1389 additions and 326 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 2
version = 3
cloudstream {

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