diff --git a/library/src/commonMain/kotlin/com/lagradost/cloudstream3/MainAPI.kt b/library/src/commonMain/kotlin/com/lagradost/cloudstream3/MainAPI.kt index c590165a1ad..eadb7783800 100644 --- a/library/src/commonMain/kotlin/com/lagradost/cloudstream3/MainAPI.kt +++ b/library/src/commonMain/kotlin/com/lagradost/cloudstream3/MainAPI.kt @@ -1497,43 +1497,7 @@ constructor( override var quality: SearchQuality? = null, override var posterHeaders: Map? = null, override var score: Score? = null, -) : SearchResponse { - @Suppress("DEPRECATION_ERROR") - @Deprecated( - "Use newAnimeSearchResponse", - level = DeprecationLevel.ERROR - ) - constructor( - name: String, - url: String, - apiName: String, - type: TvType? = null, - - posterUrl: String? = null, - year: Int? = null, - dubStatus: EnumSet? = null, - - otherName: String? = null, - episodes: MutableMap = mutableMapOf(), - - id: Int? = null, - quality: SearchQuality? = null, - posterHeaders: Map? = null, - ) : this( - name, - url, - apiName, - type, - posterUrl, - year, - dubStatus, - otherName, - episodes, - id, - quality, - posterHeaders, null - ) -} +) : SearchResponse fun AnimeSearchResponse.addDubStatus(status: DubStatus, episodes: Int? = null) { this.dubStatus = dubStatus?.also { it.add(status) } ?: EnumSet.of(status)