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: {
|
||||
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 [];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue