mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Add message for missing Pillow library
This commit is contained in:
parent
46f7a92c97
commit
46f26cc307
4 changed files with 28 additions and 27 deletions
|
@ -587,4 +587,19 @@ class RecentlyAdded(Newsletter):
|
|||
}
|
||||
]
|
||||
|
||||
if not PILLOW:
|
||||
pillow_message = {
|
||||
'label': 'Background Art',
|
||||
'description': 'The Pillow library is missing. '
|
||||
'Background art on the newsletter media cards will not be included.<br>'
|
||||
'Install the Pillow library to add background art. '
|
||||
'Instructions can be found in the '
|
||||
'<a href="' + helpers.anon_url('https://github.com/%s/plexpy/wiki/'
|
||||
'Frequently-Asked-Questions-(FAQ)#notifications-pillow'
|
||||
% plexpy.CONFIG.GIT_USER) + '" target="_blank">FAQ</a>.',
|
||||
'name': 'recently_added_pillow',
|
||||
'input_type': 'help'
|
||||
}
|
||||
config_option.insert(0, pillow_message)
|
||||
|
||||
return config_option
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue