diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index 9834204..0f2a822 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -20833,8 +20833,11 @@ class PlexMeetsHomeAssistantEditor extends HTMLElement { typeItems.appendChild(addDropdownItem('', '')); let typeAvailable = false; lodash.forEach(types, (sectionType) => { - if (sectionType.type !== 'folder' && sectionType.type !== 'track' && sectionType.type !== 'episode') { - const key = sectionType.key.split('type=')[1]; + if (sectionType.type !== 'track' && sectionType.type !== 'episode') { + let key = sectionType.key.split('type=')[1]; + if (sectionType.type === 'folder') { + key = 'folder'; + } if (lodash.isEqual(key, this.config.displayType)) { typeAvailable = true; } diff --git a/src/editor.ts b/src/editor.ts index 1870811..0a75d0f 100644 --- a/src/editor.ts +++ b/src/editor.ts @@ -797,8 +797,11 @@ class PlexMeetsHomeAssistantEditor extends HTMLElement { typeItems.appendChild(addDropdownItem('', '')); let typeAvailable = false; _.forEach(types, (sectionType: Record) => { - if (sectionType.type !== 'folder' && sectionType.type !== 'track' && sectionType.type !== 'episode') { - const key = sectionType.key.split('type=')[1]; + if (sectionType.type !== 'track' && sectionType.type !== 'episode') { + let key = sectionType.key.split('type=')[1]; + if (sectionType.type === 'folder') { + key = 'folder'; + } if (_.isEqual(key, this.config.displayType)) { typeAvailable = true; }