forked from recloudstream/cloudstream
update loadAllOnlinePlugins
This commit is contained in:
parent
7a6d16d2c1
commit
241cc92e84
1 changed files with 8 additions and 4 deletions
|
@ -248,10 +248,14 @@ object PluginManager {
|
|||
* Use updateAllOnlinePluginsAndLoadThem
|
||||
* */
|
||||
fun loadAllOnlinePlugins(activity: Activity) {
|
||||
File(activity.filesDir, ONLINE_PLUGINS_FOLDER).listFiles()?.sortedBy { it.name }
|
||||
?.apmap { file ->
|
||||
maybeLoadPlugin(activity, file)
|
||||
}
|
||||
// Load all plugins as fast as possible!
|
||||
(getPluginsOnline()).toList().apmap { pluginData ->
|
||||
loadPlugin(
|
||||
activity,
|
||||
File(pluginData.filePath),
|
||||
pluginData
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
fun loadAllLocalPlugins(activity: Activity) {
|
||||
|
|
Loading…
Reference in a new issue