Rewrite imgur url to https

This commit is contained in:
JonnyWong16 2017-03-02 18:02:10 -08:00
parent 82b42f92a9
commit 45a1c119ac

View file

@ -713,7 +713,7 @@ def uploadToImgur(imgPath, imgTitle=''):
if response.get('status') == 200:
t = '\'' + imgTitle + '\' ' if imgTitle else ''
logger.debug(u"PlexPy Helpers :: Image %suploaded to Imgur." % t)
img_url = response.get('data').get('link', '')
img_url = response.get('data').get('link', '').replace('http', 'https')
elif response.get('status') >= 400 and response.get('status') < 500:
logger.warn(u"PlexPy Helpers :: Unable to upload image to Imgur: %s" % response.reason)
else: