Add self-hosted notificaation images

This commit is contained in:
JonnyWong16
2018-03-24 22:09:37 -07:00
parent 90f3d597dc
commit e23b1a0603
11 changed files with 110 additions and 72 deletions

View File

@@ -4,8 +4,8 @@
from plexpy.helpers import grouper
recently_added = data['recently_added']
if plexpy.CONFIG.NEWSLETTER_SELF_HOSTED and plexpy.CONFIG.NEWSLETTER_BASE_URL:
base_url = plexpy.CONFIG.NEWSLETTER_BASE_URL + plexpy.HTTP_ROOT + 'newsletter/'
if plexpy.CONFIG.NEWSLETTER_SELF_HOSTED and plexpy.CONFIG.HTTP_BASE_URL:
base_url = plexpy.CONFIG.HTTP_BASE_URL + plexpy.HTTP_ROOT + 'newsletter/'
base_url_image = base_url + 'image/'
elif preview:
base_url = 'newsletter/'