feat: add cache to the getCoverArt endpoint, avoid it being reloaded every single time in the UI

This commit is contained in:
Deluan
2020-02-15 14:20:04 -05:00
parent 272d897ec9
commit 3b12c92ad5
4 changed files with 23 additions and 15 deletions
+3 -5
View File
@@ -20,11 +20,9 @@ const AlbumDetails = ({ classes, record }) => {
return (
<Card className={classes.container}>
<CardMedia
image={subsonicUrl(
'getCoverArt',
record.coverArtId || 'not_found',
'size=500'
)}
image={subsonicUrl('getCoverArt', record.coverArtId || 'not_found', {
size: 500
})}
className={classes.albumCover}
/>
<CardContent className={classes.albumDetails}>