mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Check if notification agents enabled before sending notifications
This commit is contained in:
parent
d73e379dcf
commit
cc1e888227
4 changed files with 117 additions and 64 deletions
|
@ -1105,7 +1105,7 @@ def build_server_notify_text(notify_action=None, agent_id=None):
|
|||
return None
|
||||
|
||||
|
||||
def strip_tag(data, agent_id):
|
||||
def strip_tag(data, agent_id=None):
|
||||
# Allow tags b, i, u, a[href], font[color] for Pushover
|
||||
if agent_id == 7:
|
||||
p = re.compile(r'<(?!/?(b>|i>|u>)|(a\shref=\"[^\"\'\s]+\"|/a>|font\scolor=\"[^\"\'\s]+\"|/font>)).*?>',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue