Fix typo from cd007ee

* Also better https replace for Imgur urls
This commit is contained in:
JonnyWong16 2017-09-18 19:42:28 -07:00
parent 6dd7e8445a
commit ad827e62f6
2 changed files with 2 additions and 2 deletions

View file

@ -708,7 +708,7 @@ def uploadToImgur(imgPath, imgTitle=''):
if response and not err_msg:
t = '\'' + imgTitle + '\' ' if imgTitle else ''
logger.debug(u"PlexPy Helpers :: Image {}uploaded to Imgur.".format(t))
img_url = response.json().get('data').get('link', '').replace('http', 'https')
img_url = response.json().get('data').get('link', '').replace('http://', 'https://')
else:
if err_msg:

View file

@ -205,7 +205,7 @@ def process(opcode, data):
return False
try:
activity = activity_handler.ActivityHandler(timeline=time_line[0])
activity = activity_handler.TimelineHandler(timeline=time_line[0])
activity.process()
except Exception as e:
logger.error(u"PlexPy WebSocket :: Failed to process timeline data: %s." % e)