mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
update loadAllOnlinePlugins
This commit is contained in:
parent
7a6d16d2c1
commit
241cc92e84
1 changed files with 8 additions and 4 deletions
|
@ -248,9 +248,13 @@ 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
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue