|
|
|
@ -7,13 +7,10 @@ function findImage(images, coverType) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getUrl(image, coverType, size) {
|
|
|
|
|
if (image) {
|
|
|
|
|
// Remove protocol
|
|
|
|
|
let url = image.url.replace(/^https?:/, '');
|
|
|
|
|
const imageUrl = image?.url;
|
|
|
|
|
|
|
|
|
|
url = url.replace(`${coverType}.jpg`, `${coverType}-${size}.jpg`);
|
|
|
|
|
|
|
|
|
|
return url;
|
|
|
|
|
if (imageUrl) {
|
|
|
|
|
return imageUrl.replace(`${coverType}.jpg`, `${coverType}-${size}.jpg`);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|