mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 01:32:57 -07:00
add timestamps for rich metadata info on discord
This commit is contained in:
parent
4884cee309
commit
ddb7fa04ca
2 changed files with 11 additions and 7 deletions
|
@ -420,7 +420,7 @@ def get_notifiers(notifier_id=None, notify_action=None):
|
|||
db = database.MonitorDatabase()
|
||||
result = db.select('SELECT id, agent_id, agent_name, agent_label, friendly_name, %s FROM notifiers %s'
|
||||
% (', '.join(notify_actions), where), args=args)
|
||||
|
||||
|
||||
for item in result:
|
||||
item['active'] = int(any([item.pop(k) for k in item.keys() if k in notify_actions]))
|
||||
|
||||
|
@ -1145,7 +1145,8 @@ class DISCORD(Notifier):
|
|||
plex_url = pretty_metadata.get_plex_url()
|
||||
|
||||
# Build Discord post attachment
|
||||
attachment = {'title': title
|
||||
attachment = {'title': title,
|
||||
'timestamp': helpers.utc_now_iso()
|
||||
}
|
||||
|
||||
if self.config['color']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue