mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 02:43:33 +00:00
artists fixes
This commit is contained in:
parent
c376293f2f
commit
68759a2613
6 changed files with 15 additions and 7 deletions
|
|
@ -236,7 +236,6 @@ const normalizeAlbum = (
|
||||||
})),
|
})),
|
||||||
id: item.Id,
|
id: item.Id,
|
||||||
imagePlaceholderUrl: null,
|
imagePlaceholderUrl: null,
|
||||||
participants: null,
|
|
||||||
imageUrl: getAlbumCoverArtUrl({
|
imageUrl: getAlbumCoverArtUrl({
|
||||||
baseUrl: server?.url || '',
|
baseUrl: server?.url || '',
|
||||||
item,
|
item,
|
||||||
|
|
@ -248,6 +247,7 @@ const normalizeAlbum = (
|
||||||
mbzId: item.ProviderIds?.MusicBrainzAlbum || null,
|
mbzId: item.ProviderIds?.MusicBrainzAlbum || null,
|
||||||
name: item.Name,
|
name: item.Name,
|
||||||
originalDate: null,
|
originalDate: null,
|
||||||
|
participants: null,
|
||||||
playCount: item.UserData?.PlayCount || 0,
|
playCount: item.UserData?.PlayCount || 0,
|
||||||
releaseDate: item.PremiereDate?.split('T')[0] || null,
|
releaseDate: item.PremiereDate?.split('T')[0] || null,
|
||||||
releaseYear: item.ProductionYear || null,
|
releaseYear: item.ProductionYear || null,
|
||||||
|
|
|
||||||
|
|
@ -287,7 +287,7 @@ export const NavidromeController: ControllerEndpoint = {
|
||||||
_start: query.startIndex,
|
_start: query.startIndex,
|
||||||
name: query.searchTerm,
|
name: query.searchTerm,
|
||||||
...query._custom?.navidrome,
|
...query._custom?.navidrome,
|
||||||
role: query.role,
|
role: query.role || undefined,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -425,7 +425,8 @@ export const NavidromeController: ControllerEndpoint = {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
getRandomSongList: SubsonicController.getRandomSongList,
|
getRandomSongList: SubsonicController.getRandomSongList,
|
||||||
getRoles: async () => NAVIDROME_ROLES,
|
getRoles: async ({ apiClientProps }) =>
|
||||||
|
hasFeature(apiClientProps.server, ServerFeature.BFR) ? NAVIDROME_ROLES : [],
|
||||||
getServerInfo: async (args) => {
|
getServerInfo: async (args) => {
|
||||||
const { apiClientProps } = args;
|
const { apiClientProps } = args;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -279,7 +279,10 @@ const normalizeAlbumArtist = (
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
albumCount: item.stats?.albumartist?.albumCount || item.albumCount,
|
albumCount: Math.max(
|
||||||
|
item.stats?.albumartist?.albumCount || item.albumCount,
|
||||||
|
item.stats?.artist?.albumCount || 0,
|
||||||
|
),
|
||||||
backgroundImageUrl: null,
|
backgroundImageUrl: null,
|
||||||
biography: item.biography || null,
|
biography: item.biography || null,
|
||||||
duration: null,
|
duration: null,
|
||||||
|
|
|
||||||
|
|
@ -503,6 +503,7 @@ export interface SongListQuery extends BaseQuery<SongListSort> {
|
||||||
maxYear?: number;
|
maxYear?: number;
|
||||||
minYear?: number;
|
minYear?: number;
|
||||||
musicFolderId?: string;
|
musicFolderId?: string;
|
||||||
|
role?: string;
|
||||||
searchTerm?: string;
|
searchTerm?: string;
|
||||||
startIndex: number;
|
startIndex: number;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ const TextWrapper = styled.div`
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: pre-line;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const ActiveTabIndicator = styled(motion.div)`
|
const ActiveTabIndicator = styled(motion.div)`
|
||||||
|
|
@ -90,7 +90,6 @@ const _CollapsedSidebarItem = forwardRef<HTMLDivElement, CollapsedSidebarItemPro
|
||||||
<Text
|
<Text
|
||||||
$secondary={!isMatch}
|
$secondary={!isMatch}
|
||||||
fw="600"
|
fw="600"
|
||||||
overflow="hidden"
|
|
||||||
size="xs"
|
size="xs"
|
||||||
>
|
>
|
||||||
{label}
|
{label}
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,11 @@ export const CollapsedSidebar = () => {
|
||||||
const translatedSidebarItemMap = useMemo(
|
const translatedSidebarItemMap = useMemo(
|
||||||
() => ({
|
() => ({
|
||||||
Albums: t('page.sidebar.albums', { postProcess: 'titleCase' }),
|
Albums: t('page.sidebar.albums', { postProcess: 'titleCase' }),
|
||||||
Artists: t('page.sidebar.artists', { postProcess: 'titleCase' }),
|
Artists: t('page.sidebar.albumArtists', { postProcess: 'titleCase' }).replace(
|
||||||
|
' ',
|
||||||
|
'\n',
|
||||||
|
),
|
||||||
|
'Artists-all': t('page.sidebar.artists', { postProcess: 'titleCase' }),
|
||||||
Folders: t('page.sidebar.folders', { postProcess: 'titleCase' }),
|
Folders: t('page.sidebar.folders', { postProcess: 'titleCase' }),
|
||||||
Genres: t('page.sidebar.genres', { postProcess: 'titleCase' }),
|
Genres: t('page.sidebar.genres', { postProcess: 'titleCase' }),
|
||||||
Home: t('page.sidebar.home', { postProcess: 'titleCase' }),
|
Home: t('page.sidebar.home', { postProcess: 'titleCase' }),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue