From 660dc73e64a00f3471e404998d4ac79b29194d2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Nyi=CC=81ri?= Date: Wed, 5 May 2021 23:48:00 +0200 Subject: [PATCH] Add: Ability to instant play movies --- dist/plex-meets-homeassistant.js | 2 +- src/plex-meets-homeassistant.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index 0effc9b..97871d4 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -19871,7 +19871,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { const keyParts = data.key.split('/'); const movieID = keyParts[3]; if (this.hassObj && this.playController) { - this.playController.play(movieID); + this.playController.play(movieID, data.type === 'movie'); } }); const titleElem = document.createElement('div'); diff --git a/src/plex-meets-homeassistant.ts b/src/plex-meets-homeassistant.ts index 4e32879..3bd27dc 100644 --- a/src/plex-meets-homeassistant.ts +++ b/src/plex-meets-homeassistant.ts @@ -698,7 +698,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { const movieID = keyParts[3]; if (this.hassObj && this.playController) { - this.playController.play(movieID); + this.playController.play(movieID, data.type === 'movie'); } });