Skip to content

Commit

Permalink
delete innesesary code and return sort on videolist
Browse files Browse the repository at this point in the history
  • Loading branch information
Dark25 committed Mar 27, 2024
1 parent b3577df commit b066d0d
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,6 @@ class StreamingCommunity : ConfigurableAnimeSource, AnimeHttpSource() {

// ============================ Video Links =============================

interface VideoProvider {
fun getVideoList(): List<Video>
}

override suspend fun getVideoList(episode: SEpisode): List<Video> {
val videoList = mutableListOf<Video>()
val doc =
Expand Down Expand Up @@ -323,7 +319,7 @@ class StreamingCommunity : ConfigurableAnimeSource, AnimeHttpSource() {

require(videoList.isNotEmpty()) { "Failed to fetch videos" }

return videoList
return videoList.sort()
}

override fun videoListRequest(episode: SEpisode): Request = throw Exception("Not used")
Expand Down

0 comments on commit b066d0d

Please sign in to comment.