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:
Qstick
2019-05-07 19:10:09 -04:00
committed by GitHub
parent bcdef2723f
commit 35c19dac5f
13 changed files with 232 additions and 307 deletions
+2 -1
View File
@@ -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,
+1 -1
View File
@@ -353,7 +353,7 @@ class ArtistDetails extends Component {
<ArtistPoster
className={styles.poster}
images={images}
size={500}
size={250}
lazy={false}
/>