Uncoulpe self-hosted newsletter and image setting

This commit is contained in:
JonnyWong16 2018-05-06 08:33:28 -07:00
commit 04fcd78102
4 changed files with 27 additions and 16 deletions

View file

@ -695,7 +695,7 @@ class RecentlyAdded(Newsletter):
artists = recently_added.get('artist', [])
albums = [a for artist in artists for a in artist['album']]
if self.is_preview or plexpy.CONFIG.NEWSLETTER_SELF_HOSTED:
if self.is_preview or helpers.get_img_service(include_self=True) == 'self-hosted':
for item in movies + shows + albums:
if item['media_type'] == 'album':
height = 150
@ -717,7 +717,7 @@ class RecentlyAdded(Newsletter):
item['poster_url'] = ''
item['art_url'] = ''
else:
elif helpers.get_img_service():
# Upload posters and art to image hosting service
for item in movies + shows + albums:
if item['media_type'] == 'album':