From 6e2e29a9c223a517b9a752d3797f8e60a204ce93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Nyi=CC=81ri?= Date: Sat, 8 May 2021 11:03:40 +0200 Subject: [PATCH] Add: comment --- dist/plex-meets-homeassistant.js | 2 +- src/modules/PlayController.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index 66e5c63..ed34aae 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -18745,13 +18745,13 @@ class PlayController { }; this.playViaKodi = async (title, type) => { const kodiData = await this.getKodiSearch(title); + // todo: check if kodiData is not empty! if (type === 'movie') { await this.hass.callService('kodi', 'call_method', { // eslint-disable-next-line @typescript-eslint/camelcase entity_id: this.entity.kodi, method: 'Player.Open', item: { - // eslint-disable-next-line @typescript-eslint/camelcase movieid: kodiData.movieid } }); diff --git a/src/modules/PlayController.ts b/src/modules/PlayController.ts index 225c262..a0e243b 100644 --- a/src/modules/PlayController.ts +++ b/src/modules/PlayController.ts @@ -69,13 +69,13 @@ class PlayController { private playViaKodi = async (title: string, type: string): Promise => { const kodiData = await this.getKodiSearch(title); + // todo: check if kodiData is not empty! if (type === 'movie') { await this.hass.callService('kodi', 'call_method', { // eslint-disable-next-line @typescript-eslint/camelcase entity_id: this.entity.kodi, method: 'Player.Open', item: { - // eslint-disable-next-line @typescript-eslint/camelcase movieid: kodiData.movieid } });