mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 14:10:52 -07:00
Removed shared Imgur client id
* Users must enter their own Imgur client id now
This commit is contained in:
parent
e1b61214b7
commit
21fcbd85d8
4 changed files with 36 additions and 3 deletions
|
@ -525,9 +525,14 @@ def anon_url(*url):
|
|||
return '' if None in url else '%s%s' % (plexpy.CONFIG.ANON_REDIRECT, ''.join(str(s) for s in url))
|
||||
|
||||
def uploadToImgur(imgPath, imgTitle=''):
|
||||
client_id = '743b1a443ccd2b0'
|
||||
""" Uploads an image to Imgur """
|
||||
client_id = plexpy.CONFIG.IMGUR_CLIENT_ID
|
||||
img_url = ''
|
||||
|
||||
if not client_id:
|
||||
logger.error(u"PlexPy Helpers :: Cannot upload poster to Imgur. No client id specifiec in the settings.")
|
||||
return img_url
|
||||
|
||||
try:
|
||||
with open(imgPath, 'rb') as imgFile:
|
||||
img = imgFile.read()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue