feat: updates

This commit is contained in:
qier222 2023-02-05 03:36:33 +08:00
parent ccebe0a67a
commit 9a52681687
No known key found for this signature in database
37 changed files with 160 additions and 55332 deletions

View file

@ -37,7 +37,9 @@ const Header = () => {
const creatorLink = `/artist/${album?.artist.id}`
const description = isLoadingAppleMusicAlbum
? ''
: appleMusicAlbum?.editorialNote?.[i18n.language.replace('-', '_')] || album?.description
: appleMusicAlbum?.editorialNote?.[i18n.language.replace('-', '_')] ||
album?.description ||
appleMusicAlbum?.editorialNote?.en_US
const extraInfo = useMemo(() => {
const duration = album?.songs?.reduce((acc, cur) => acc + cur.dt, 0) || 0
const albumDuration = formatDuration(duration, i18n.language, 'hh[hr] mm[min]')