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
|
* Use updateAllOnlinePluginsAndLoadThem
|
||||||
* */
|
* */
|
||||||
fun loadAllOnlinePlugins(activity: Activity) {
|
fun loadAllOnlinePlugins(activity: Activity) {
|
||||||
File(activity.filesDir, ONLINE_PLUGINS_FOLDER).listFiles()?.sortedBy { it.name }
|
// Load all plugins as fast as possible!
|
||||||
?.apmap { file ->
|
(getPluginsOnline()).toList().apmap { pluginData ->
|
||||||
maybeLoadPlugin(activity, file)
|
loadPlugin(
|
||||||
}
|
activity,
|
||||||
|
File(pluginData.filePath),
|
||||||
|
pluginData
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun loadAllLocalPlugins(activity: Activity) {
|
fun loadAllLocalPlugins(activity: Activity) {
|
||||||
|
|
Loading…
Reference in a new issue