mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 14:10:52 -07:00
Add summary to Facebook posts
This commit is contained in:
parent
1d01d0bff1
commit
b743cca7bc
2 changed files with 24 additions and 21 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue