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

Preserve the protocol in Movie Image

(cherry picked from commit a2f16bddfd7dfba207c5feaaf472913c38dc3e25)

Closes #9198
This commit is contained in:
Bogdan
2023-09-10 18:39:13 +03:00
parent 4e01fa57fd
commit fe7203815d
3 changed files with 9 additions and 5 deletions

View File

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