Ignore episodes without video list #381
3 changed files with 3 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
ext {
|
||||
extName = 'Torrentio Anime (Torrent / Debrid)'
|
||||
extClass = '.Torrentio'
|
||||
extVersionCode = 9
|
||||
extVersionCode = 10
|
||||
containsNsfw = false
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -150,4 +150,5 @@ data class EpisodeVideo(
|
|||
val episode: Int? = null,
|
||||
val released: String? = null,
|
||||
val title: String? = null,
|
||||
val thumbnail: String? = null,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue