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
@@ -7,6 +7,7 @@ import {
ExplicitStatus,
Folder,
Genre,
InternetRadioStation,
LibraryItem,
Playlist,
RelatedArtist,
@@ -391,11 +392,23 @@ const normalizeFolder = (
};
};
const normalizeInternetRadioStation = (
item: z.infer<typeof ssType._response.internetRadioStation>,
): InternetRadioStation => {
return {
homepageUrl: item.homepageUrl || null,
id: item.id,
name: item.name,
streamUrl: item.streamUrl,
};
};
export const ssNormalize = {
album: normalizeAlbum,
albumArtist: normalizeAlbumArtist,
folder: normalizeFolder,
genre: normalizeGenre,
internetRadioStation: normalizeInternetRadioStation,
playlist: normalizePlaylist,
song: normalizeSong,
};