fix(all/torrentio): Fix empty video list for movies (#2930)
This commit is contained in:
parent
4aa364d912
commit
17f9e4163e
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user