diff --git a/platypush/backend/http/static/js/plugins/media/players/kodi.js b/platypush/backend/http/static/js/plugins/media/players/kodi.js index 66b02c5f6..528960603 100644 --- a/platypush/backend/http/static/js/plugins/media/players/kodi.js +++ b/platypush/backend/http/static/js/plugins/media/players/kodi.js @@ -43,8 +43,8 @@ MediaPlayers.kodi = Vue.extend({ methods: { scan: async function() { - const plugin = __plugins__['media.kodi']; - if (!plugin) { + const plugin = await request('inspect.get_config', {entry: 'media.kodi'}); + if (!(plugin && plugin.host)) { return []; }