mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Fix HDMovie5.kt and None in homepage
This commit is contained in:
parent
e32f99d8a7
commit
65804d7739
2 changed files with 4 additions and 2 deletions
|
@ -8,7 +8,7 @@ import com.lagradost.cloudstream3.utils.loadExtractor
|
||||||
import org.jsoup.Jsoup
|
import org.jsoup.Jsoup
|
||||||
|
|
||||||
class HDMovie5 : MainAPI() {
|
class HDMovie5 : MainAPI() {
|
||||||
override var mainUrl = "https://hdmovie2.art"
|
override var mainUrl = "https://hdmovie2.click"
|
||||||
override var name = "HDMovie"
|
override var name = "HDMovie"
|
||||||
override var lang = "hi"
|
override var lang = "hi"
|
||||||
|
|
||||||
|
|
|
@ -158,7 +158,7 @@ class HomeViewModel : ViewModel() {
|
||||||
|
|
||||||
val lock: MutableSet<String> = mutableSetOf()
|
val lock: MutableSet<String> = mutableSetOf()
|
||||||
|
|
||||||
suspend fun expandAndReturn(name: String) : ExpandableHomepageList? {
|
suspend fun expandAndReturn(name: String): ExpandableHomepageList? {
|
||||||
if (lock.contains(name)) return null
|
if (lock.contains(name)) return null
|
||||||
lock += name
|
lock += name
|
||||||
|
|
||||||
|
@ -256,6 +256,8 @@ class HomeViewModel : ViewModel() {
|
||||||
}
|
}
|
||||||
else -> Unit
|
else -> Unit
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
_page.postValue(Resource.Success(emptyMap()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue