forked from recloudstream/cloudstream
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
3856f52eb6
1 changed files with 5 additions and 0 deletions
|
@ -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, {
|
||||
|
|
Loading…
Reference in a new issue