mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fixed zoro bug
This commit is contained in:
parent
e0925cfded
commit
0631e28c4c
1 changed files with 5 additions and 0 deletions
|
@ -96,6 +96,11 @@ class PlayerGeneratorViewModel : ViewModel() {
|
||||||
val currentLinks = mutableSetOf<Pair<ExtractorLink?, ExtractorUri?>>()
|
val currentLinks = mutableSetOf<Pair<ExtractorLink?, ExtractorUri?>>()
|
||||||
val currentSubs = mutableSetOf<SubtitleData>()
|
val currentSubs = mutableSetOf<SubtitleData>()
|
||||||
|
|
||||||
|
// clear old data
|
||||||
|
_currentSubs.postValue(currentSubs)
|
||||||
|
_currentLinks.postValue(currentLinks)
|
||||||
|
|
||||||
|
// load more data
|
||||||
_loadingLinks.postValue(Resource.Loading())
|
_loadingLinks.postValue(Resource.Loading())
|
||||||
val loadingState = safeApiCall {
|
val loadingState = safeApiCall {
|
||||||
generator?.generateLinks(clearCache = clearCache, isCasting = isCasting, {
|
generator?.generateLinks(clearCache = clearCache, isCasting = isCasting, {
|
||||||
|
|
Loading…
Reference in a new issue