forked from recloudstream/cloudstream
minifix
This commit is contained in:
parent
34cbcd8311
commit
f462e1896b
1 changed files with 3 additions and 2 deletions
|
@ -165,7 +165,8 @@ object PluginManager {
|
||||||
var allCurrentOutDatedPlugins: Set<OnlinePluginData> = emptySet()
|
var allCurrentOutDatedPlugins: Set<OnlinePluginData> = emptySet()
|
||||||
|
|
||||||
suspend fun loadSinglePlugin(activity: Activity, apiName: String): Boolean {
|
suspend fun loadSinglePlugin(activity: Activity, apiName: String): Boolean {
|
||||||
return getPluginsOnline().firstOrNull { it.internalName == apiName }?.let { savedData ->
|
return (getPluginsOnline().firstOrNull { it.internalName == apiName }
|
||||||
|
?: getPluginsLocal().firstOrNull { it.internalName == apiName })?.let { savedData ->
|
||||||
// OnlinePluginData(savedData, onlineData)
|
// OnlinePluginData(savedData, onlineData)
|
||||||
loadPlugin(
|
loadPlugin(
|
||||||
activity,
|
activity,
|
||||||
|
|
Loading…
Reference in a new issue