Merge branch 'recloudstream:master' into master
This commit is contained in:
commit
e833585b15
|
@ -31,7 +31,7 @@ class GMPlayer : ExtractorApi() {
|
|||
this.name,
|
||||
this.name,
|
||||
m3u8,
|
||||
"",
|
||||
ref,
|
||||
Qualities.Unknown.value,
|
||||
headers = mapOf("accept" to "*/*"),
|
||||
isM3u8 = true
|
||||
|
|
|
@ -272,12 +272,13 @@ class HomeViewModel : ViewModel() {
|
|||
if (!forceReload && api?.let { expandable[it.name]?.list?.list?.isNotEmpty() } == true) {
|
||||
return@launchSafe
|
||||
}
|
||||
// If the plugin isn't loaded yet. (Does not set the key)
|
||||
if (api == null) {
|
||||
loadAndCancel(noneApi)
|
||||
} else if (preferredApiName == noneApi.name) {
|
||||
|
||||
if (preferredApiName == noneApi.name) {
|
||||
setKey(USER_SELECTED_HOMEPAGE_API, noneApi.name)
|
||||
loadAndCancel(noneApi)
|
||||
// If the plugin isn't loaded yet. (Does not set the key)
|
||||
} else if (api == null) {
|
||||
loadAndCancel(noneApi)
|
||||
} else if (preferredApiName == randomApi.name) {
|
||||
val validAPIs = context?.filterProviderByPreferredMedia()
|
||||
if (validAPIs.isNullOrEmpty()) {
|
||||
|
|
Loading…
Reference in New Issue