File tree Expand file tree Collapse file tree
AnimeVerse/src/main/kotlin/com/animeverse Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import com.lagradost.cloudstream3.utils.ExtractorLink
77import com.lagradost.cloudstream3.utils.ExtractorLinkType
88import com.lagradost.cloudstream3.utils.Qualities
99import com.lagradost.cloudstream3.utils.newExtractorLink
10+ import java.util.EnumSet
1011import javax.crypto.Mac
1112import 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 }
You can’t perform that action at this time.
0 commit comments