mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Rewrite imgur url to https
This commit is contained in:
parent
82b42f92a9
commit
45a1c119ac
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue