mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-26 22:46:37 -04:00
Fixed: Cache Album covers local (#780)
* Fixed: Cache Album covers local * Fixed: Maxsize is handled by the backend mapping * Fixed: Store Album covers seperate from ArtistId
This commit is contained in:
@@ -10,6 +10,7 @@ function getUrl(image, coverType, size) {
|
||||
if (image) {
|
||||
// Remove protocol
|
||||
let url = image.url.replace(/^https?:/, '');
|
||||
|
||||
url = url.replace(`${coverType}.jpg`, `${coverType}-${size}.jpg`);
|
||||
|
||||
return url;
|
||||
@@ -24,7 +25,7 @@ class ArtistImage extends Component {
|
||||
constructor(props, context) {
|
||||
super(props, context);
|
||||
|
||||
const pixelRatio = Math.floor(window.devicePixelRatio);
|
||||
const pixelRatio = Math.ceil(window.devicePixelRatio);
|
||||
|
||||
const {
|
||||
images,
|
||||
|
||||
@@ -353,7 +353,7 @@ class ArtistDetails extends Component {
|
||||
<ArtistPoster
|
||||
className={styles.poster}
|
||||
images={images}
|
||||
size={500}
|
||||
size={250}
|
||||
lazy={false}
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user