Add summary to Facebook posts

This commit is contained in:
JonnyWong16 2016-03-19 23:27:26 -07:00
parent 1d01d0bff1
commit b743cca7bc
2 changed files with 24 additions and 21 deletions

View file

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