From 5170288050df3164d455b0d3959d61c91d57015c Mon Sep 17 00:00:00 2001 From: rebelonion <87634197+rebelonion@users.noreply.github.com> Date: Tue, 16 Jan 2024 14:51:33 -0600 Subject: [PATCH] update extension api --- .../tachiyomi/animesource/AnimeSource.kt | 72 +++++++++---------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/animesource/AnimeSource.kt b/app/src/main/java/eu/kanade/tachiyomi/animesource/AnimeSource.kt index 210e04df..53da5305 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/animesource/AnimeSource.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/animesource/AnimeSource.kt @@ -25,41 +25,11 @@ interface AnimeSource { get() = "" /** - * Returns an observable with the updated details for a anime. + * Get the updated details for a anime. * + * @since extensions-lib 1.5 * @param anime the anime to update. - */ - @Deprecated( - "Use the 1.x API instead", - ReplaceWith("getAnimeDetails"), - ) - fun fetchAnimeDetails(anime: SAnime): Observable = throw IllegalStateException("Not used") - - /** - * Returns an observable with all the available episodes for a anime. - * - * @param anime the anime to update. - */ - @Deprecated( - "Use the 1.x API instead", - ReplaceWith("getEpisodeList"), - ) - fun fetchEpisodeList(anime: SAnime): Observable> = throw IllegalStateException("Not used") - - /** - * Returns an observable with the list of videos a episode has. Videos should be returned - * in the expected order; the index is ignored. - * - * @param episode the episode. - */ - @Deprecated( - "Use the 1.x API instead", - ReplaceWith("getVideoList"), - ) - fun fetchVideoList(episode: SEpisode): Observable> = Observable.empty() - - /** - * [1.x API] Get the updated details for a anime. + * @return the updated anime. */ @Suppress("DEPRECATION") suspend fun getAnimeDetails(anime: SAnime): SAnime { @@ -67,7 +37,11 @@ interface AnimeSource { } /** - * [1.x API] Get all the available episodes for a anime. + * Get all the available episodes for a anime. + * + * @since extensions-lib 1.5 + * @param anime the anime to update. + * @return the episodes for the anime. */ @Suppress("DEPRECATION") suspend fun getEpisodeList(anime: SAnime): List { @@ -75,11 +49,37 @@ interface AnimeSource { } /** - * [1.x API] Get the list of videos a episode has. Videos should be returned + * Get the list of videos a episode has. Pages should be returned * in the expected order; the index is ignored. + * + * @since extensions-lib 1.5 + * @param episode the episode. + * @return the videos for the episode. */ @Suppress("DEPRECATION") suspend fun getVideoList(episode: SEpisode): List