From 399bbd1e497d3de0924ef768f1f8a66440c3e3ed Mon Sep 17 00:00:00 2001 From: jakewaldron Date: Tue, 16 Aug 2016 12:40:01 -0700 Subject: [PATCH] Bug Fix Check if the image is externally hosted (http and https). Credit for the fix goes to mmaster23. --- scripts/plexEmail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/plexEmail.py b/scripts/plexEmail.py index caa4e8f..fbb0d50 100644 --- a/scripts/plexEmail.py +++ b/scripts/plexEmail.py @@ -25,7 +25,7 @@ from email.utils import formataddr from xml.etree.ElementTree import XML -SCRIPT_VERSION = 'v0.8.6' +SCRIPT_VERSION = 'v0.8.7' def replaceConfigTokens(): ## The below code is for backwards compatibility @@ -353,7 +353,7 @@ def processImage(imageHash, thumb, mediaType, seasonIndex, episodeIndex): thumbObj['emailImgPath'] = '' return thumbObj - if (thumb.find('http://') >= 0): + if (thumb.find('http://') >= 0 or thumb.find('https://') >= 0): logging.info('processImage: thumb is already an externally hosted image') thumbObj['webImgPath'] = thumb thumbObj['emailImgPath'] = thumb