Merge pull request #720 from pyxfluff/patch-1

Add play count to albums
This commit is contained in:
Kendall Garner 2024-09-01 12:50:19 -07:00 committed by GitHub
commit b93ad40571
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View file

@ -139,6 +139,8 @@
"genreWithCount_other": "{{count}} genres", "genreWithCount_other": "{{count}} genres",
"playlist_one": "playlist", "playlist_one": "playlist",
"playlist_other": "playlists", "playlist_other": "playlists",
"play_one": "{{count}} play",
"play_other": "{{count}} plays",
"playlistWithCount_one": "{{count}} playlist", "playlistWithCount_one": "{{count}} playlist",
"playlistWithCount_other": "{{count}} playlists", "playlistWithCount_other": "{{count}} playlists",
"smartPlaylist": "smart $t(entity.playlist_one)", "smartPlaylist": "smart $t(entity.playlist_one)",

View file

@ -48,6 +48,12 @@ export const AlbumDetailHeader = forwardRef(
value: value:
detailQuery?.data?.duration && formatDurationString(detailQuery.data.duration), detailQuery?.data?.duration && formatDurationString(detailQuery.data.duration),
}, },
{
id: 'playCount',
value: t('entity.play', {
count: detailQuery?.data?.playCount as number,
}),
},
]; ];
if (originalDifferentFromRelease) { if (originalDifferentFromRelease) {