mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Merge branch 'recloudstream:master' into master
This commit is contained in:
commit
923bc053cb
2 changed files with 6 additions and 5 deletions
|
@ -31,7 +31,7 @@ class GMPlayer : ExtractorApi() {
|
||||||
this.name,
|
this.name,
|
||||||
this.name,
|
this.name,
|
||||||
m3u8,
|
m3u8,
|
||||||
"",
|
ref,
|
||||||
Qualities.Unknown.value,
|
Qualities.Unknown.value,
|
||||||
headers = mapOf("accept" to "*/*"),
|
headers = mapOf("accept" to "*/*"),
|
||||||
isM3u8 = true
|
isM3u8 = true
|
||||||
|
|
|
@ -272,12 +272,13 @@ class HomeViewModel : ViewModel() {
|
||||||
if (!forceReload && api?.let { expandable[it.name]?.list?.list?.isNotEmpty() } == true) {
|
if (!forceReload && api?.let { expandable[it.name]?.list?.list?.isNotEmpty() } == true) {
|
||||||
return@launchSafe
|
return@launchSafe
|
||||||
}
|
}
|
||||||
// If the plugin isn't loaded yet. (Does not set the key)
|
|
||||||
if (api == null) {
|
if (preferredApiName == noneApi.name) {
|
||||||
loadAndCancel(noneApi)
|
|
||||||
} else if (preferredApiName == noneApi.name) {
|
|
||||||
setKey(USER_SELECTED_HOMEPAGE_API, noneApi.name)
|
setKey(USER_SELECTED_HOMEPAGE_API, noneApi.name)
|
||||||
loadAndCancel(noneApi)
|
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) {
|
} else if (preferredApiName == randomApi.name) {
|
||||||
val validAPIs = context?.filterProviderByPreferredMedia()
|
val validAPIs = context?.filterProviderByPreferredMedia()
|
||||||
if (validAPIs.isNullOrEmpty()) {
|
if (validAPIs.isNullOrEmpty()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue