Invalidate cached images when album changes
This commit is contained in:
@@ -133,16 +133,8 @@ const AlbumDetails = ({ record }) => {
|
||||
return genreDateLine.join(' · ')
|
||||
}
|
||||
|
||||
const imageUrl = subsonic.url(
|
||||
'getCoverArt',
|
||||
record.coverArtId || 'not_found',
|
||||
{ size: 300 }
|
||||
)
|
||||
|
||||
const fullImageUrl = subsonic.url(
|
||||
'getCoverArt',
|
||||
record.coverArtId || 'not_found'
|
||||
)
|
||||
const imageUrl = subsonic.getCoverArtUrl(record, 300)
|
||||
const fullImageUrl = subsonic.getCoverArtUrl(record)
|
||||
|
||||
const handleOpenLightbox = React.useCallback(() => setLightboxOpen(true), [])
|
||||
const handleCloseLightbox = React.useCallback(
|
||||
|
||||
@@ -98,9 +98,7 @@ const Cover = withContentRect('bounds')(
|
||||
return (
|
||||
<div ref={measureRef}>
|
||||
<img
|
||||
src={subsonic.url('getCoverArt', album.coverArtId || 'not_found', {
|
||||
size: 300,
|
||||
})}
|
||||
src={subsonic.getCoverArtUrl(album, 300)}
|
||||
alt={album.album}
|
||||
className={classes.cover}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user