Fix HDMovie5.kt and None in homepage

This commit is contained in:
Blatzar 2022-07-31 16:20:48 +02:00
parent e32f99d8a7
commit 65804d7739
2 changed files with 4 additions and 2 deletions

View file

@ -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"

View file

@ -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()))
} }
} }