forked from recloudstream/cloudstream
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
|
||||
|
||||
class HDMovie5 : MainAPI() {
|
||||
override var mainUrl = "https://hdmovie2.art"
|
||||
override var mainUrl = "https://hdmovie2.click"
|
||||
override var name = "HDMovie"
|
||||
override var lang = "hi"
|
||||
|
||||
|
|
|
@ -158,7 +158,7 @@ class HomeViewModel : ViewModel() {
|
|||
|
||||
val lock: MutableSet<String> = mutableSetOf()
|
||||
|
||||
suspend fun expandAndReturn(name: String) : ExpandableHomepageList? {
|
||||
suspend fun expandAndReturn(name: String): ExpandableHomepageList? {
|
||||
if (lock.contains(name)) return null
|
||||
lock += name
|
||||
|
||||
|
@ -256,6 +256,8 @@ class HomeViewModel : ViewModel() {
|
|||
}
|
||||
else -> Unit
|
||||
}
|
||||
} else {
|
||||
_page.postValue(Resource.Success(emptyMap()))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue