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:
@@ -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`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user