Add: Ability to instant play movies

pull/16/head
Juraj Nyíri 4 years ago
parent 9a5b62ed9e
commit 660dc73e64

@ -19871,7 +19871,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
const keyParts = data.key.split('/'); const keyParts = data.key.split('/');
const movieID = keyParts[3]; const movieID = keyParts[3];
if (this.hassObj && this.playController) { if (this.hassObj && this.playController) {
this.playController.play(movieID); this.playController.play(movieID, data.type === 'movie');
} }
}); });
const titleElem = document.createElement('div'); const titleElem = document.createElement('div');

@ -698,7 +698,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
const movieID = keyParts[3]; const movieID = keyParts[3];
if (this.hassObj && this.playController) { if (this.hassObj && this.playController) {
this.playController.play(movieID); this.playController.play(movieID, data.type === 'movie');
} }
}); });

Loading…
Cancel
Save