mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 23:42:37 -07:00
Only preview notification text for valid media types
This commit is contained in:
parent
580595e5fa
commit
0ab9cdf97c
4 changed files with 39 additions and 20 deletions
|
@ -2993,8 +2993,10 @@ class WebInterface(object):
|
|||
agent_id = int(agent_id)
|
||||
|
||||
text = []
|
||||
media_types = next((a['media_types'] for a in notifiers.available_notification_actions()
|
||||
if a['name'] == notify_action), ())
|
||||
|
||||
for media_type in ('movie', 'show', 'season', 'episode', 'artist', 'album', 'track'):
|
||||
for media_type in media_types:
|
||||
test_subject, test_body = notification_handler.build_notify_text(subject=subject,
|
||||
body=body,
|
||||
notify_action=notify_action,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue