Skip to content

Commit

Permalink
Bug Fix
Browse files Browse the repository at this point in the history
Check if the image is externally hosted (http and https).

Credit for the fix goes to mmaster23.
  • Loading branch information
jakewaldron committed Aug 16, 2016
1 parent 8d23154 commit 399bbd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/plexEmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 399bbd1

Please sign in to comment.