fixed zoro bug

This commit is contained in:
LagradOst 2022-01-27 21:19:31 +01:00
parent e0925cfded
commit 0631e28c4c
1 changed files with 5 additions and 0 deletions

View File

@ -96,6 +96,11 @@ class PlayerGeneratorViewModel : ViewModel() {
val currentLinks = mutableSetOf<Pair<ExtractorLink?, ExtractorUri?>>()
val currentSubs = mutableSetOf<SubtitleData>()
// clear old data
_currentSubs.postValue(currentSubs)
_currentLinks.postValue(currentLinks)
// load more data
_loadingLinks.postValue(Resource.Loading())
val loadingState = safeApiCall {
generator?.generateLinks(clearCache = clearCache, isCasting = isCasting, {