Fix centering last item on newsletter

This commit is contained in:
JonnyWong16 2018-04-04 20:45:34 -07:00
parent 45c646c062
commit 366e8514b6
6 changed files with 554 additions and 450 deletions

View file

@ -698,9 +698,12 @@ class RecentlyAdded(Newsletter):
item['thumb_hash'] = set_hash_image_info(
img=item['thumb'], width=150, height=225, fallback='poster')
item['art_hash'] = set_hash_image_info(
img=item['art'], width=500, height=280,
opacity=25, background='282828', blur=3, fallback='art')
if item['art']:
item['art_hash'] = set_hash_image_info(
img=item['art'], width=500, height=280,
opacity=25, background='282828', blur=3, fallback='art')
else:
item['art_hash'] = ''
item['poster_url'] = ''
item['art_url'] = ''