Skip to content

Commit 2b01e70

Browse files
author
RiskyN
committed
Fix compilation errors in AnimeVerse
1 parent 653e15c commit 2b01e70

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

AnimeVerse/src/main/kotlin/com/animeverse/AnimeVerseProvider.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import com.lagradost.cloudstream3.utils.ExtractorLink
77
import com.lagradost.cloudstream3.utils.ExtractorLinkType
88
import com.lagradost.cloudstream3.utils.Qualities
99
import com.lagradost.cloudstream3.utils.newExtractorLink
10+
import java.util.EnumSet
1011
import javax.crypto.Mac
1112
import javax.crypto.spec.SecretKeySpec
1213

@@ -145,7 +146,7 @@ class AnimeVerseProvider : MainAPI() {
145146
item.title.contains("(dub)", ignoreCase = true)
146147
newAnimeSearchResponse(item.title, item.slug) {
147148
this.posterUrl = if (item.cover.startsWith("/i/")) "$mainUrl${item.cover}" else item.cover
148-
this.dubStatus = if (isDub) DubStatus.Dubbed else DubStatus.Subbed
149+
this.dubStatus = if (isDub) EnumSet.of(DubStatus.Dubbed) else EnumSet.of(DubStatus.Subbed)
149150
}
150151
}
151152
}
@@ -227,8 +228,6 @@ class AnimeVerseProvider : MainAPI() {
227228
if (it.startsWith("/i/")) "$mainUrl$it" else it
228229
}
229230
this.plot = details.synopsis
230-
// API rating is 0-10; Cloudstream expects 0-10000
231-
this.rating = details.rating?.times(1000)?.toInt()
232231
this.tags = details.genres
233232
this.episodes = mutableMapOf(dubStatus to episodes)
234233
}

0 commit comments

Comments
 (0)