forked from platypush/platypush
Removed old reference to __plugins__ in kodi.js - using inspect.get_config
endpoint instead.
This commit is contained in:
parent
dc1b54961f
commit
edd2235cbc
1 changed files with 2 additions and 2 deletions
|
@ -43,8 +43,8 @@ MediaPlayers.kodi = Vue.extend({
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
scan: async function() {
|
scan: async function() {
|
||||||
const plugin = __plugins__['media.kodi'];
|
const plugin = await request('inspect.get_config', {entry: 'media.kodi'});
|
||||||
if (!plugin) {
|
if (!(plugin && plugin.host)) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue