Removed old reference to __plugins__ in kodi.js - using inspect.get_config endpoint instead.

This commit is contained in:
Fabio Manganiello 2020-08-31 18:31:15 +02:00
parent dc1b54961f
commit edd2235cbc

View file

@ -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 [];
} }