@@ -1350,7 +1350,43 @@ constructor(
13501350 override var quality: SearchQuality ? = null ,
13511351 override var posterHeaders: Map <String , String >? = null ,
13521352 override var score: Score ? = null ,
1353- ) : SearchResponse
1353+ ) : SearchResponse {
1354+ @Suppress(" DEPRECATION_ERROR" )
1355+ @Deprecated(
1356+ " Use newAnimeSearchResponse" ,
1357+ level = DeprecationLevel .ERROR
1358+ )
1359+ constructor (
1360+ name: String ,
1361+ url: String ,
1362+ apiName: String ,
1363+ type: TvType ? = null ,
1364+
1365+ posterUrl: String? = null ,
1366+ year: Int? = null ,
1367+ dubStatus: EnumSet <DubStatus >? = null ,
1368+
1369+ otherName: String? = null ,
1370+ episodes: MutableMap <DubStatus , Int > = mutableMapOf (),
1371+
1372+ id: Int? = null ,
1373+ quality: SearchQuality ? = null ,
1374+ posterHeaders: Map <String , String >? = null ,
1375+ ) : this (
1376+ name,
1377+ url,
1378+ apiName,
1379+ type,
1380+ posterUrl,
1381+ year,
1382+ dubStatus,
1383+ otherName,
1384+ episodes,
1385+ id,
1386+ quality,
1387+ posterHeaders, null
1388+ )
1389+ }
13541390
13551391fun AnimeSearchResponse.addDubStatus (status : DubStatus , episodes : Int? = null) {
13561392 this .dubStatus = dubStatus?.also { it.add(status) } ? : EnumSet .of(status)
@@ -1410,7 +1446,23 @@ constructor(
14101446 override var quality: SearchQuality ? = null ,
14111447 override var posterHeaders: Map <String , String >? = null ,
14121448 override var score: Score ? = null ,
1413- ) : SearchResponse
1449+ ) : SearchResponse {
1450+ @Suppress(" DEPRECATION_ERROR" )
1451+ @Deprecated(
1452+ " Use newTorrentSearchResponse" ,
1453+ level = DeprecationLevel .ERROR
1454+ )
1455+ constructor (
1456+ name: String ,
1457+ url: String ,
1458+ apiName: String ,
1459+ type: TvType ? ,
1460+ posterUrl: String? ,
1461+ id: Int? = null ,
1462+ quality: SearchQuality ? = null ,
1463+ posterHeaders: Map <String , String >? = null
1464+ ) : this (name, url, apiName, type, posterUrl, id, quality, posterHeaders, null )
1465+ }
14141466
14151467/* * Data class of [SearchResponse] interface for Movies.
14161468 * @see newMovieSearchResponse
@@ -1429,7 +1481,24 @@ constructor(
14291481 override var quality: SearchQuality ? = null ,
14301482 override var posterHeaders: Map <String , String >? = null ,
14311483 override var score: Score ? = null ,
1432- ) : SearchResponse
1484+ ) : SearchResponse {
1485+ @Suppress(" DEPRECATION_ERROR" )
1486+ @Deprecated(
1487+ " Use newMovieSearchResponse" ,
1488+ level = DeprecationLevel .ERROR
1489+ )
1490+ constructor (
1491+ name: String ,
1492+ url: String ,
1493+ apiName: String ,
1494+ type: TvType ? ,
1495+ posterUrl: String? ,
1496+ year: Int? = null ,
1497+ id: Int? = null ,
1498+ quality: SearchQuality ? = null ,
1499+ posterHeaders: Map <String , String >? = null
1500+ ) : this (name, url, apiName, type, posterUrl, id, year, quality, posterHeaders, null )
1501+ }
14331502
14341503/* * Data class of [SearchResponse] interface for Live streams.
14351504 * @see newLiveSearchResponse
@@ -1448,7 +1517,24 @@ constructor(
14481517 override var posterHeaders: Map <String , String >? = null ,
14491518 var lang: String? = null ,
14501519 override var score: Score ? = null ,
1451- ) : SearchResponse
1520+ ) : SearchResponse {
1521+ @Suppress(" DEPRECATION_ERROR" )
1522+ @Deprecated(
1523+ " Use newLiveSearchResponse" ,
1524+ level = DeprecationLevel .ERROR
1525+ )
1526+ constructor (
1527+ name: String ,
1528+ url: String ,
1529+ apiName: String ,
1530+ type: TvType ? ,
1531+ posterUrl: String? ,
1532+ id: Int? = null ,
1533+ quality: SearchQuality ? = null ,
1534+ posterHeaders: Map <String , String >? = null ,
1535+ lang: String? = null ,
1536+ ) : this (name, url, apiName, type, posterUrl, id, quality, posterHeaders, lang, null )
1537+ }
14521538
14531539/* * Data class of [SearchResponse] interface for Tv series.
14541540 * @see newTvSeriesSearchResponse
@@ -1468,7 +1554,37 @@ constructor(
14681554 override var quality: SearchQuality ? = null ,
14691555 override var posterHeaders: Map <String , String >? = null ,
14701556 override var score: Score ? = null ,
1471- ) : SearchResponse
1557+ ) : SearchResponse {
1558+ @Suppress(" DEPRECATION_ERROR" )
1559+ @Deprecated(
1560+ " Use newTvSeriesSearchResponse" ,
1561+ level = DeprecationLevel .ERROR
1562+ )
1563+ constructor (
1564+ name: String ,
1565+ url: String ,
1566+ apiName: String ,
1567+ type: TvType ? ,
1568+ posterUrl: String? ,
1569+ year: Int? = null ,
1570+ episodes: Int? = null ,
1571+ id: Int? = null ,
1572+ quality: SearchQuality ? = null ,
1573+ posterHeaders: Map <String , String >? = null ,
1574+ ) : this (
1575+ name,
1576+ url,
1577+ apiName,
1578+ type,
1579+ posterUrl,
1580+ year,
1581+ episodes,
1582+ id,
1583+ quality,
1584+ posterHeaders,
1585+ null
1586+ )
1587+ }
14721588
14731589/* * Data class of Trailer data.
14741590 * @property extractorUrl Url string of the Trailer video.
0 commit comments