* [bugfix]: Handle top-level songs for Jellyfin If a song is at the top level of a music folder, Jellyfin will not group that into an album (See https://jellyfin.org/docs/general/server/media/music/). This PR introduces a few changes: - Gives tracks with no album ID a special route (`/dummy/${id}`) - Gives a new route for dummy albums, warning about the error. This is designed to look _like_ the album detail page * `are are` > `are` * revert name changes
28 lines
1.3 KiB
TypeScript
28 lines
1.3 KiB
TypeScript
export enum AppRoute {
|
|
ACTION_REQUIRED = '/action-required',
|
|
EXPLORE = '/explore',
|
|
FAKE_LIBRARY_ALBUM_DETAILS = '/library/albums/dummy/:albumId',
|
|
HOME = '/',
|
|
LIBRARY_ALBUMS = '/library/albums',
|
|
LIBRARY_ALBUMS_DETAIL = '/library/albums/:albumId',
|
|
LIBRARY_ALBUM_ARTISTS = '/library/album-artists',
|
|
LIBRARY_ALBUM_ARTISTS_DETAIL = '/library/album-artists/:albumArtistId',
|
|
LIBRARY_ALBUM_ARTISTS_DETAIL_DISCOGRAPHY = '/library/album-artists/:albumArtistId/discography',
|
|
LIBRARY_ALBUM_ARTISTS_DETAIL_SONGS = '/library/album-artists/:albumArtistId/songs',
|
|
LIBRARY_ALBUM_ARTISTS_DETAIL_TOP_SONGS = '/library/album-artists/:albumArtistId/top-songs',
|
|
LIBRARY_ARTISTS = '/library/artists',
|
|
LIBRARY_ARTISTS_DETAIL = '/library/artists/:artistId',
|
|
LIBRARY_FOLDERS = '/library/folders',
|
|
LIBRARY_GENRES = '/library/genres',
|
|
LIBRARY_GENRES_ALBUMS = '/library/genres/:genreId/albums',
|
|
LIBRARY_GENRES_SONGS = '/library/genres/:genreId/songs',
|
|
LIBRARY_SONGS = '/library/songs',
|
|
NOW_PLAYING = '/now-playing',
|
|
PLAYING = '/playing',
|
|
PLAYLISTS = '/playlists',
|
|
PLAYLISTS_DETAIL = '/playlists/:playlistId',
|
|
PLAYLISTS_DETAIL_SONGS = '/playlists/:playlistId/songs',
|
|
SEARCH = '/search/:itemType',
|
|
SERVERS = '/servers',
|
|
SETTINGS = '/settings',
|
|
}
|