diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/player/PlayerGeneratorViewModel.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/player/PlayerGeneratorViewModel.kt index 7bece164..e1a113fa 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/player/PlayerGeneratorViewModel.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/player/PlayerGeneratorViewModel.kt @@ -96,6 +96,11 @@ class PlayerGeneratorViewModel : ViewModel() { val currentLinks = mutableSetOf>() val currentSubs = mutableSetOf() + // 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, {