mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-26 06:43:45 +03:00
fix crash when playing episode with external player fails
This commit is contained in:
parent
0a8adc5f46
commit
f903c0c320
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue