Allow disabling poster upload to Imgur

* Disabled by default
This commit is contained in:
JonnyWong16 2016-02-21 17:06:05 -08:00
parent 5bed46c0aa
commit 2a885d709d
4 changed files with 11 additions and 2 deletions

View file

@ -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'))