@@ -778,7 +778,6 @@ enum class DubStatus(val id: Int) {
778778 * Internally it stores it as an int up to 10^9 to represent up to 10 significant digits. So think
779779 * of this as a decimal class specifically for ratings.
780780 * */
781- @Prerelease
782781@JsonAutoDetect(fieldVisibility = JsonAutoDetect .Visibility .ANY )
783782class Score private constructor(
784783 /* * Decimal between [0, 10^9] representing the min score and max score respectively */
@@ -1201,7 +1200,7 @@ fun MainAPI.newTorrentSearchResponse(
12011200 fix : Boolean = true,
12021201 initializer : TorrentSearchResponse .() -> Unit = { },
12031202): TorrentSearchResponse {
1204- @Suppress(" DEPRECATION " )
1203+ @Suppress(" DEPRECATION_ERROR " )
12051204 val builder = TorrentSearchResponse (
12061205 name = name,
12071206 url = if (fix) fixUrl(url) else url,
@@ -1221,7 +1220,7 @@ fun MainAPI.newMovieSearchResponse(
12211220 fix : Boolean = true,
12221221 initializer : MovieSearchResponse .() -> Unit = { },
12231222): MovieSearchResponse {
1224- @Suppress(" DEPRECATION " )
1223+ @Suppress(" DEPRECATION_ERROR " )
12251224 val builder = MovieSearchResponse (name, if (fix) fixUrl(url) else url, this .name, type)
12261225 builder.initializer()
12271226
@@ -1235,7 +1234,7 @@ fun MainAPI.newLiveSearchResponse(
12351234 fix : Boolean = true,
12361235 initializer : LiveSearchResponse .() -> Unit = { },
12371236): LiveSearchResponse {
1238- @Suppress(" DEPRECATION " )
1237+ @Suppress(" DEPRECATION_ERROR " )
12391238 val builder = LiveSearchResponse (
12401239 name = name,
12411240 url = if (fix) fixUrl(url) else url,
@@ -1253,7 +1252,7 @@ fun MainAPI.newTvSeriesSearchResponse(
12531252 fix : Boolean = true,
12541253 initializer : TvSeriesSearchResponse .() -> Unit = { },
12551254): TvSeriesSearchResponse {
1256- @Suppress(" DEPRECATION " )
1255+ @Suppress(" DEPRECATION_ERROR " )
12571256 val builder = TvSeriesSearchResponse (name, if (fix) fixUrl(url) else url, this .name, type)
12581257 builder.initializer()
12591258
@@ -1267,7 +1266,7 @@ fun MainAPI.newAnimeSearchResponse(
12671266 fix : Boolean = true,
12681267 initializer : AnimeSearchResponse .() -> Unit = { },
12691268): AnimeSearchResponse {
1270- @Suppress(" DEPRECATION " )
1269+ @Suppress(" DEPRECATION_ERROR " )
12711270 val builder = AnimeSearchResponse (name, if (fix) fixUrl(url) else url, this .name, type)
12721271 builder.initializer()
12731272
@@ -1332,7 +1331,7 @@ data class ActorData(
13321331 * @see newAnimeSearchResponse
13331332 * */
13341333data class AnimeSearchResponse
1335- @Deprecated(" Use newAnimeSearchResponse" , level = DeprecationLevel .WARNING )
1334+ @Deprecated(" Use newAnimeSearchResponse" , level = DeprecationLevel .ERROR )
13361335constructor (
13371336 override val name: String ,
13381337 override val url: String ,
@@ -1397,7 +1396,7 @@ fun AnimeSearchResponse.addDubStatus(status: String, episodes: Int? = null) {
13971396 * @see newTorrentSearchResponse
13981397 * */
13991398data class TorrentSearchResponse
1400- @Deprecated(" Use newTorrentSearchResponse" , level = DeprecationLevel .WARNING )
1399+ @Deprecated(" Use newTorrentSearchResponse" , level = DeprecationLevel .ERROR )
14011400constructor (
14021401 override val name: String ,
14031402 override val url: String ,
@@ -1414,7 +1413,7 @@ constructor(
14141413 * @see newMovieSearchResponse
14151414 * */
14161415data class MovieSearchResponse
1417- @Deprecated(" Use newMovieSearchResponse" , level = DeprecationLevel .WARNING )
1416+ @Deprecated(" Use newMovieSearchResponse" , level = DeprecationLevel .ERROR )
14181417constructor (
14191418 override val name: String ,
14201419 override val url: String ,
@@ -1432,7 +1431,7 @@ constructor(
14321431 * @see newLiveSearchResponse
14331432 * */
14341433data class LiveSearchResponse
1435- @Deprecated(" Use newLiveSearchResponse" , level = DeprecationLevel .WARNING )
1434+ @Deprecated(" Use newLiveSearchResponse" , level = DeprecationLevel .ERROR )
14361435constructor (
14371436 override val name: String ,
14381437 override val url: String ,
@@ -1450,7 +1449,7 @@ constructor(
14501449 * @see newTvSeriesSearchResponse
14511450 * */
14521451data class TvSeriesSearchResponse
1453- @Deprecated(" Use newTvSeriesSearchResponse" , level = DeprecationLevel .WARNING )
1452+ @Deprecated(" Use newTvSeriesSearchResponse" , level = DeprecationLevel .ERROR )
14541453constructor (
14551454 override val name: String ,
14561455 override val url: String ,
@@ -1513,7 +1512,6 @@ interface LoadResponse {
15131512 var year: Int?
15141513 var plot: String?
15151514
1516- @Prerelease
15171515 var score: Score ?
15181516 var tags: List <String >?
15191517 var duration: Int? // in minutes
@@ -1527,7 +1525,6 @@ interface LoadResponse {
15271525 var backgroundPosterUrl: String?
15281526 var contentRating: String?
15291527
1530- @Prerelease
15311528 var uniqueUrl: String
15321529
15331530 @Deprecated(
@@ -1738,13 +1735,11 @@ interface LoadResponse {
17381735 }
17391736
17401737 @Suppress(" UNUSED_PARAMETER" )
1741- @Prerelease
17421738 fun LoadResponse.addTraktId (id : String? ) {
17431739 // TODO add Trakt sync
17441740 }
17451741
17461742 @Suppress(" UNUSED_PARAMETER" )
1747- @Prerelease
17481743 fun LoadResponse.addKitsuId (id : String? ) {
17491744 // TODO add Kitsu sync
17501745 }
@@ -1982,7 +1977,6 @@ constructor(
19821977 override var posterHeaders: Map <String , String >? = null ,
19831978 override var backgroundPosterUrl: String? = null ,
19841979 override var contentRating: String? = null ,
1985- @Prerelease
19861980 override var uniqueUrl: String = url
19871981) : LoadResponse {
19881982 /* *
@@ -2095,7 +2089,6 @@ constructor(
20952089 override var seasonNames: List <SeasonData >? = null ,
20962090 override var backgroundPosterUrl: String? = null ,
20972091 override var contentRating: String? = null ,
2098- @Prerelease
20992092 override var uniqueUrl: String = url
21002093) : LoadResponse , EpisodeResponse {
21012094
@@ -2131,7 +2124,7 @@ constructor(
21312124 @Suppress(" DEPRECATION_ERROR" )
21322125 @Deprecated(
21332126 " Use newAnimeLoadResponse method with contentRating included" ,
2134- level = DeprecationLevel .WARNING
2127+ level = DeprecationLevel .ERROR
21352128 )
21362129 constructor (
21372130 engName: String? = null ,
@@ -2202,7 +2195,7 @@ suspend fun MainAPI.newAnimeLoadResponse(
22022195 comingSoonIfNone : Boolean = true,
22032196 initializer : suspend AnimeLoadResponse .() -> Unit = { },
22042197): AnimeLoadResponse {
2205- @Suppress(" DEPRECATION " )
2198+ @Suppress(" DEPRECATION_ERROR " )
22062199 val builder = AnimeLoadResponse (name = name, url = url, apiName = this .name, type = type)
22072200 builder.initializer()
22082201 if (comingSoonIfNone) {
@@ -2243,7 +2236,6 @@ constructor(
22432236 override var posterHeaders: Map <String , String >? = null ,
22442237 override var backgroundPosterUrl: String? = null ,
22452238 override var contentRating: String? = null ,
2246- @Prerelease
22472239 override var uniqueUrl: String = url
22482240) : LoadResponse {
22492241 /* *
@@ -2253,7 +2245,7 @@ constructor(
22532245 @Suppress(" DEPRECATION_ERROR" )
22542246 @Deprecated(
22552247 " Use newLiveStreamLoadResponse method with contentRating included" ,
2256- level = DeprecationLevel .WARNING
2248+ level = DeprecationLevel .ERROR
22572249 )
22582250 constructor (
22592251 name: String ,
@@ -2342,7 +2334,6 @@ constructor(
23422334 override var posterHeaders: Map <String , String >? = null ,
23432335 override var backgroundPosterUrl: String? = null ,
23442336 override var contentRating: String? = null ,
2345- @Prerelease
23462337 override var uniqueUrl: String = url
23472338) : LoadResponse {
23482339 /* *
@@ -2458,7 +2449,7 @@ suspend fun MainAPI.newMovieLoadResponse(
24582449 * @see newEpisode
24592450 * */
24602451data class Episode
2461- @Deprecated(" Use newEpisode" , level = DeprecationLevel .ERROR )
2452+ @Deprecated(" Use newEpisode method " , level = DeprecationLevel .ERROR )
24622453constructor (
24632454 var data: String ,
24642455 var name: String? = null ,
@@ -2485,7 +2476,7 @@ constructor(
24852476 * TODO Remove this constructor after there is a new stable release and extensions are updated to support runTime.
24862477 */
24872478 @Suppress(" DEPRECATION_ERROR" )
2488- @Deprecated(" Use newEpisode with runTime included " , level = DeprecationLevel .ERROR )
2479+ @Deprecated(" Use newEpisode method " , level = DeprecationLevel .ERROR )
24892480 constructor (
24902481 data: String ,
24912482 name: String? = null ,
@@ -2590,7 +2581,6 @@ constructor(
25902581 override var seasonNames: List <SeasonData >? = null ,
25912582 override var backgroundPosterUrl: String? = null ,
25922583 override var contentRating: String? = null ,
2593- @Prerelease
25942584 override var uniqueUrl: String = url
25952585) : LoadResponse , EpisodeResponse {
25962586 override fun getLatestEpisodes (): Map <DubStatus , Int ?> {
0 commit comments