Add some date options for notifications

This commit is contained in:
JonnyWong16 2016-06-04 22:30:41 -07:00
parent 0f92dc0fdf
commit b4e06dea99
2 changed files with 25 additions and 0 deletions

View file

@ -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']),