From 408ff983cfbcd8714c5ceba49ddc99c0d6b2bb4d Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 7 Jun 2015 21:28:21 -0700 Subject: [PATCH] Use protocol agnostic URLs for images on add series Closes #583 --- src/UI/Handlebars/Helpers/Series.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/UI/Handlebars/Helpers/Series.js b/src/UI/Handlebars/Helpers/Series.js index 770028d84..30a198b07 100644 --- a/src/UI/Handlebars/Helpers/Series.js +++ b/src/UI/Handlebars/Helpers/Series.js @@ -11,7 +11,8 @@ Handlebars.registerHelper('poster', function() { if (!poster[0].url.match(/^https?:\/\//)) { return new Handlebars.SafeString(''.format(Handlebars.helpers.defaultImg.call(null, poster[0].url, 250))); } else { - return new Handlebars.SafeString(''.format(Handlebars.helpers.defaultImg.call(null, poster[0].url))); + var url = poster[0].url.replace(/^https?\:/, ''); + return new Handlebars.SafeString(''.format(Handlebars.helpers.defaultImg.call(null, url))); } }