mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Add some date options for notifications
This commit is contained in:
parent
0f92dc0fdf
commit
b4e06dea99
2 changed files with 25 additions and 0 deletions
|
@ -727,6 +727,11 @@ def build_notify_text(session=None, timeline=None, notify_action=None, agent_id=
|
|||
'track_num': metadata['media_index'].zfill(1),
|
||||
'track_num00': metadata['media_index'].zfill(2),
|
||||
'year': metadata['year'],
|
||||
'release_date': arrow.get(metadata['originally_available_at']).format(date_format),
|
||||
'air_date': arrow.get(metadata['originally_available_at']).format(date_format),
|
||||
'added_date': arrow.get(metadata['added_at']).format(date_format),
|
||||
'updated_date': arrow.get(metadata['updated_at']).format(date_format),
|
||||
'last_viewed_date': arrow.get(metadata['last_viewed_at']).format(date_format),
|
||||
'studio': metadata['studio'],
|
||||
'content_rating': metadata['content_rating'],
|
||||
'directors': ', '.join(metadata['directors']),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue