fix(all/torrentio): Fix empty video list for movies (#2930)

This commit is contained in:
Nitin Dahale 2024-02-14 17:29:01 +05:30 committed by GitHub
parent 4aa364d912
commit 17f9e4163e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'Torrentio Anime (Torrent / Debrid)' extName = 'Torrentio Anime (Torrent / Debrid)'
extClass = '.Torrentio' extClass = '.Torrentio'
extVersionCode = 2 extVersionCode = 3
containsNsfw = false containsNsfw = false
} }

View File

@ -379,11 +379,10 @@ class Torrentio : ConfigurableAnimeSource, AnimeHttpSource() {
"movie" -> { "movie" -> {
// Handle movie response // Handle movie response
val movieId = episodeList.meta.kitsuId?.substringAfterLast(":")?.toIntOrNull() ?: 0
listOf( listOf(
SEpisode.create().apply { SEpisode.create().apply {
episode_number = 1.0F episode_number = 1.0F
url = "/stream/movie/$movieId.json" url = "/stream/movie/${episodeList.meta.kitsuId}.json"
name = "Movie" name = "Movie"
}, },
).reversed() ).reversed()