Add internet radio (#1384)

This commit is contained in:
Jeff
2025-12-13 21:26:33 -08:00
committed by GitHub
parent f61d34c340
commit 7ed847fecb
46 changed files with 2229 additions and 118 deletions
+11 -1
View File
@@ -7,6 +7,7 @@ import {
AlbumArtist,
Artist,
Genre,
InternetRadioStation,
LibraryItem,
Playlist,
QueueSong,
@@ -97,7 +98,15 @@ interface CreateFuseOptions {
threshold?: number;
}
type FuseSearchableItem = Album | AlbumArtist | Artist | Genre | Playlist | QueueSong | Song;
type FuseSearchableItem =
| Album
| AlbumArtist
| Artist
| Genre
| InternetRadioStation
| Playlist
| QueueSong
| Song;
export const createFuseForLibraryItem = <T extends FuseSearchableItem>(
items: T[],
@@ -171,6 +180,7 @@ export const createFuseForLibraryItem = <T extends FuseSearchableItem>(
case LibraryItem.ARTIST:
case LibraryItem.GENRE:
case LibraryItem.RADIO_STATION:
break;
case LibraryItem.PLAYLIST: {