Fix issues
This commit is contained in:
parent
2d5db406c8
commit
e432f3fed2
2 changed files with 3 additions and 4 deletions
|
@ -10,7 +10,6 @@ import pluginManager from 'pluginManager';
|
||||||
console.groupCollapsed('loading packages');
|
console.groupCollapsed('loading packages');
|
||||||
var manifestUrls = JSON.parse(appSettings.get(this.#settingsKey) || '[]');
|
var manifestUrls = JSON.parse(appSettings.get(this.#settingsKey) || '[]');
|
||||||
|
|
||||||
var instance = this;
|
|
||||||
return Promise.all(manifestUrls.map((url) => {
|
return Promise.all(manifestUrls.map((url) => {
|
||||||
return this.loadPackage(url);
|
return this.loadPackage(url);
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -21,8 +21,8 @@ import globalize from 'globalize';
|
||||||
}
|
}
|
||||||
|
|
||||||
#definePluginRoute(route, plugin) {
|
#definePluginRoute(route, plugin) {
|
||||||
route.contentPath = this.#mapPath(plugin, route.path);
|
route.contentPath = this.mapPath(plugin, route.path);
|
||||||
route.path = this.mapRoute(plugin, route);
|
route.path = this.#mapRoute(plugin, route);
|
||||||
|
|
||||||
Emby.App.defineRoute(route, plugin.id);
|
Emby.App.defineRoute(route, plugin.id);
|
||||||
}
|
}
|
||||||
|
@ -128,7 +128,7 @@ import globalize from 'globalize';
|
||||||
return '/plugins/' + plugin.id + '/' + route;
|
return '/plugins/' + plugin.id + '/' + route;
|
||||||
}
|
}
|
||||||
|
|
||||||
#mapPath(plugin, path, addCacheParam) {
|
mapPath(plugin, path, addCacheParam) {
|
||||||
if (typeof plugin === 'string') {
|
if (typeof plugin === 'string') {
|
||||||
plugin = this.pluginsList.filter((p) => {
|
plugin = this.pluginsList.filter((p) => {
|
||||||
return (p.id || p.packageName) === plugin;
|
return (p.id || p.packageName) === plugin;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue