Add: Unwatched count for the whole tv shows

pull/16/head
Juraj Nyíri 4 years ago
parent 364aede3e9
commit 4bc7feab5d

@ -20305,6 +20305,12 @@ class PlexMeetsHomeAssistant extends HTMLElement {
}); });
const playButton = this.getPlayButton(); const playButton = this.getPlayButton();
const interactiveArea = document.createElement('div'); const interactiveArea = document.createElement('div');
if (data.leafCount - data.viewedLeafCount > 0) {
const toViewElem = document.createElement('div');
toViewElem.className = 'toViewSeason';
toViewElem.innerHTML = (data.leafCount - data.viewedLeafCount).toString();
interactiveArea.appendChild(toViewElem);
}
interactiveArea.className = 'interactiveArea'; interactiveArea.className = 'interactiveArea';
if (this.playController && this.playController.isPlaySupported(data)) { if (this.playController && this.playController.isPlaySupported(data)) {
interactiveArea.append(playButton); interactiveArea.append(playButton);

@ -869,6 +869,14 @@ class PlexMeetsHomeAssistant extends HTMLElement {
const playButton = this.getPlayButton(); const playButton = this.getPlayButton();
const interactiveArea = document.createElement('div'); const interactiveArea = document.createElement('div');
if (data.leafCount - data.viewedLeafCount > 0) {
const toViewElem = document.createElement('div');
toViewElem.className = 'toViewSeason';
toViewElem.innerHTML = (data.leafCount - data.viewedLeafCount).toString();
interactiveArea.appendChild(toViewElem);
}
interactiveArea.className = 'interactiveArea'; interactiveArea.className = 'interactiveArea';
if (this.playController && this.playController.isPlaySupported(data)) { if (this.playController && this.playController.isPlaySupported(data)) {
interactiveArea.append(playButton); interactiveArea.append(playButton);

Loading…
Cancel
Save