Skip to content

Commit

Permalink
fix: misleading name for mediaBrowserTitlesToIgnore, renamed it to fa…
Browse files Browse the repository at this point in the history
…voritesToIgnore
  • Loading branch information
punxaphil committed Feb 17, 2024
1 parent 12ff8e8 commit 1a4e6f3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ customThumbnailIfMissing:
Ed Sheeran Radio: https://i.scdn.co/image/ab6761610000e5eb4d2f80ceffc6c70a432ccd7c
Legendary: https://i.scdn.co/image/ab67706f000000027b2e7ee752dc222ff2fd466f
fallback: https://cdn-icons-png.flaticon.com/512/651/651717.png # will use this if thumbnail is missing and none of the above matches. Defaults to black music notes with white background.
mediaBrowserTitlesToIgnore:
- Local Media
favoritesToIgnore:
- My Favorite Album
- My Bad Playlist
topFavorites: # Show these favorites at the top of the list
- Legendary
Expand Down
2 changes: 1 addition & 1 deletion src/editor/advanced-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class AdvancedEditor extends BaseEditor {
<li>customSources</li>
<li>customThumbnail</li>
<li>customThumbnailIfMissing</li>
<li>mediaBrowserTitlesToIgnore</li>
<li>favoritesToIgnore</li>
</ul>
</div>
`;
Expand Down
2 changes: 1 addition & 1 deletion src/services/media-browse-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default class MediaBrowseService {
favorites = this.removeDuplicates(favorites);
favorites = favorites.length ? favorites : this.getFavoritesFromStates(player);
return favorites.filter(
(item) => indexOfWithoutSpecialChars(this.config.mediaBrowserTitlesToIgnore ?? [], item.title) === -1,
(item) => indexOfWithoutSpecialChars(this.config.favoritesToIgnore ?? [], item.title) === -1,
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export interface CardConfig extends LovelaceCardConfig {
customSources?: CustomSources;
customThumbnail?: CustomThumbnails;
customThumbnailIfMissing?: CustomThumbnails;
mediaBrowserTitlesToIgnore?: string[];
favoritesToIgnore?: string[];
mediaBrowserItemsPerRow?: number;
mediaBrowserHideTitleForThumbnailIcons?: boolean;
topFavorites?: string[];
Expand Down

0 comments on commit 1a4e6f3

Please sign in to comment.