From edd2235cbc8e8497e55960e23dd74e31ecbf4c3b Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 31 Aug 2020 18:31:15 +0200 Subject: [PATCH] Removed old reference to __plugins__ in kodi.js - using `inspect.get_config` endpoint instead. --- .../backend/http/static/js/plugins/media/players/kodi.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 []; }