From 50aa8faa8dc303efc392009a9dc35226fff10155 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Fri, 15 Oct 2021 00:40:02 -0700 Subject: [PATCH] Fix arrow get timestamp from integer --- plexpy/notification_handler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index 406c2cda..adf3d103 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -1057,11 +1057,11 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m if notify_params['originally_available_at'] else '', 'air_date': arrow.get(notify_params['originally_available_at']).format(date_format) if notify_params['originally_available_at'] else '', - 'added_date': arrow.get(notify_params['added_at']).format(date_format) + 'added_date': arrow.get(int(notify_params['added_at'])).format(date_format) if notify_params['added_at'] else '', - 'updated_date': arrow.get(notify_params['updated_at']).format(date_format) + 'updated_date': arrow.get(int(notify_params['updated_at'])).format(date_format) if notify_params['updated_at'] else '', - 'last_viewed_date': arrow.get(notify_params['last_viewed_at']).format(date_format) + 'last_viewed_date': arrow.get(int(notify_params['last_viewed_at'])).format(date_format) if notify_params['last_viewed_at'] else '', 'studio': notify_params['studio'], 'content_rating': notify_params['content_rating'],