mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Allow disabling poster upload to Imgur
* Disabled by default
This commit is contained in:
parent
5bed46c0aa
commit
2a885d709d
4 changed files with 11 additions and 2 deletions
|
@ -565,7 +565,7 @@ def build_notify_text(session=None, timeline=None, notify_action=None):
|
|||
poster_url = data_factory.get_poster_url(rating_key=poster_key)
|
||||
|
||||
# If no previous poster_url
|
||||
if not poster_url:
|
||||
if not poster_url and plexpy.CONFIG.NOTIFY_UPLOAD_POSTERS:
|
||||
# Retrieve the poster from Plex and cache to file
|
||||
urllib.urlretrieve(plexpy.CONFIG.PMS_URL + thumb + '?X-Plex-Token=' + plexpy.CONFIG.PMS_TOKEN,
|
||||
os.path.join(plexpy.CONFIG.CACHE_DIR, 'cache-poster.jpg'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue