1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-18 21:35:51 -04:00

Fixed: Images for some movies not downloading

Closes #8006

Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
Qstick
2023-07-17 19:34:39 -05:00
parent feff609685
commit 248ac9619c
13 changed files with 44 additions and 46 deletions
+4 -2
View File
@@ -7,9 +7,11 @@ function findImage(images, coverType) {
}
function getUrl(image, coverType, size) {
if (image) {
const imageUrl = image?.url ?? image?.remoteUrl;
if (imageUrl) {
// Remove protocol
let url = image.url.replace(/^https?:/, '');
let url = imageUrl.replace(/^https?:/, '');
url = url.replace(`${coverType}.jpg`, `${coverType}-${size}.jpg`);
return url;