Ignore episodes without video list (#381)

This commit is contained in:
Grafcube 2024-11-22 15:18:41 +05:30 committed by GitHub
parent 6dd53f4aa6
commit 9c9dc081e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

View file

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

View file

@ -375,6 +375,7 @@ class Torrentio : ConfigurableAnimeSource, AnimeHttpSource() {
?.let { videos ->
if (preferences.getBoolean(UPCOMING_EP_KEY, UPCOMING_EP_DEFAULT)) { videos } else { videos.filter { video -> (video.released?.let { parseDate(it) } ?: 0L) <= System.currentTimeMillis() } }
}
?.filter { it.thumbnail != null }
?.map { video ->
SEpisode.create().apply {
episode_number = video.episode?.toFloat() ?: 0.0F

View file

@ -150,4 +150,5 @@ data class EpisodeVideo(
val episode: Int? = null,
val released: String? = null,
val title: String? = null,
val thumbnail: String? = null,
)