mirror of https://github.com/Radarr/Radarr
Preserve the protocol for fanart images
(cherry picked from commit d8633b968830fd20d73612e9f0d0559b0bcb304c) Closes #9205
This commit is contained in:
parent
552b8f91d2
commit
3bc4197b4a
|
@ -54,11 +54,7 @@ const defaultFontSize = parseInt(fonts.defaultFontSize);
|
|||
const lineHeight = parseFloat(fonts.lineHeight);
|
||||
|
||||
function getFanartUrl(images) {
|
||||
const fanartImage = _.find(images, { coverType: 'fanart' });
|
||||
if (fanartImage) {
|
||||
// Remove protocol
|
||||
return fanartImage.url.replace(/^https?:/, '');
|
||||
}
|
||||
return _.find(images, { coverType: 'fanart' })?.url;
|
||||
}
|
||||
|
||||
function getExpandedState(newState) {
|
||||
|
|
Loading…
Reference in New Issue