fix crash when playing episode with external player fails

This commit is contained in:
jmir1 2021-11-24 00:44:44 +01:00
parent 0a8adc5f46
commit f903c0c320

View file

@ -42,11 +42,11 @@ class EpisodeLoader {
it?.first()
}
source is AnimeHttpSource -> isHttp(episode, source).map {
if (it.isEmpty()) error(errorMessage)
if (it.isEmpty()) null
else it.first()
}
source is LocalAnimeSource -> isLocal(episode).map {
if (it.isEmpty()) error(errorMessage)
if (it.isEmpty()) null
else it.first()
}
else -> error("source not supported")