mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 13:00:13 +02:00
Add internet radio (#1384)
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user