Fixed CastHelper (#879)

This commit is contained in:
Davide 2022-03-29 14:14:26 +02:00 committed by GitHub
parent 5f643dbe00
commit 71da2233d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,7 @@ object CastHelper {
): Boolean {
if (this == null) return false
if (episodes.isEmpty()) return false
if (currentLinks.size <= currentEpisodeIndex) return false
if (currentEpisodeIndex >= episodes.size) return false
val epData = episodes[currentEpisodeIndex]