Skip to content

Commit

Permalink
Fix: fallback thumb not working
Browse files Browse the repository at this point in the history
  • Loading branch information
punxaphil committed Feb 3, 2023
1 parent e001f31 commit 2bdcd23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/media-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export abstract class MediaItem extends LitElement {
if (!thumbnail) {
thumbnail = this.config.customThumbnailIfMissing?.[this.mediaItem.title] || '';
if (this.itemsWithImage && !thumbnail) {
thumbnail = this.config.customThumbnailIfMissing?.['default'] || DEFAULT_MEDIA_THUMBNAIL;
thumbnail = this.config.customThumbnailIfMissing?.fallback || DEFAULT_MEDIA_THUMBNAIL;
}
} else if (thumbnail?.match(/https:\/\/brands.home-assistant.io\/.+\/logo.png/)) {
thumbnail = thumbnail?.replace('logo.png', 'icon.png');
Expand Down

0 comments on commit 2bdcd23

Please sign in to comment.