diff --git a/data/interfaces/default/css/plexpy.css b/data/interfaces/default/css/plexpy.css
index 9cb75630..6fb199ab 100644
--- a/data/interfaces/default/css/plexpy.css
+++ b/data/interfaces/default/css/plexpy.css
@@ -2656,6 +2656,7 @@ table[id^='media_info_child'] table[id^='media_info_child'] thead th {
margin: 5px 0 0 0.5em;
}
.notification-params {
+ width: 100%;
margin-top: 10px;
background-color: #282828;
}
@@ -2670,6 +2671,14 @@ table[id^='media_info_child'] table[id^='media_info_child'] thead th {
padding-left: 10px;
width: 200px;
}
+.notification-params.time-options td:first-child {
+ padding-left: 10px;
+ width: 125px;
+}
+.notification-params.time-options td:nth-child(2) {
+ padding-left: 10px;
+ width: 275px;
+}
.notification-params td:not(:first-child) {
padding-right: 10px;
}
diff --git a/data/interfaces/default/settings.html b/data/interfaces/default/settings.html
index b6f39a54..75bbe41e 100644
--- a/data/interfaces/default/settings.html
+++ b/data/interfaces/default/settings.html
@@ -1031,24 +1031,45 @@ available_notification_agents = sorted(notifiers.available_notification_agents()
Date & Time Format Options
-
+
+
+
+
+ Year
+ |
+
+
-
- Year |
-
YYYY |
- Numeric, 4 digits |
+ Numeric, four digits |
Eg., 1999, 2003 |
YY |
- Numeric, 2 digits |
+ Numeric, two digits |
Eg., 99, 03 |
-
+
+
+
+
- Month |
+
+ Month
+ |
+
+
+
+
+ MMMM |
+ Textual, full |
+ January-December |
+
+
+ MMM |
+ Textual, three letters |
+ Jan-Dec |
MM |
@@ -1060,23 +1081,41 @@ available_notification_agents = sorted(notifiers.available_notification_agents()
Numeric, without leading zeros |
1-12 |
+
+
+
+
- MMMM |
- Textual full |
- January-December |
+
+ Day of the Year
+ |
+
+
+
+
+ DDDD |
+ Numeric, with leading zeros |
+ 001-365 |
- MMM |
- Textual three letters |
- Jan-Dec |
+ DDD |
+ Numeric, without leading zeros |
+ 1-365 |
-
+
+
+
+
- Day |
+
+ Day of the Month
+ |
+
+
- DD |
- Numeric, with leading zeros |
+ DD |
+ Numeric, with leading zeros |
01-31 |
@@ -1086,57 +1125,165 @@ available_notification_agents = sorted(notifiers.available_notification_agents()
Do |
- The English suffix for the day of the month |
- st, nd or th in the 1st, 2nd or 15th. |
+ Numeric, with suffix |
+ Eg., 1st, 2nd ... 31st. |
-
+
+
+
+
- Time |
+
+ Day of the Week
+ |
+
+
+
+
+ dddd |
+ Textual, full |
+ Sunday-Saturday |
- a |
- am/pm Lowercase |
- am, pm |
+ ddd |
+ Textual, three letters |
+ Sun-Sat |
- A |
- AM/PM Uppercase |
- AM, PM |
+ d |
+ Numeric |
+ 0-6 |
+
+
+
+
- h |
- Hour, 12-hour, without leading zeros |
- 1-12 |
-
-
- hh |
- Hour, 12-hour, with leading zeros |
- 01-12 |
-
-
- H |
- Hour, 24-hour, without leading zeros |
- 0-23 |
+
+ Hour
+ |
+
+
HH |
- Hour, 24-hour, with leading zeros |
+ 24-hour, with leading zeros |
00-23 |
+
+ H |
+ 24-hour, without leading zeros |
+ 0-23 |
+
+
+ hh |
+ 12-hour, with leading zeros |
+ 01-12 |
+
+
+ h |
+ 12-hour, without leading zeros |
+ 1-12 |
+
+
+
+
+
+
+
+ Minute
+ |
+
+
+
mm |
- Minutes, with leading zeros |
+ Numeric, with leading zeros |
00-59 |
+
+ m |
+ Numeric, without leading zeros |
+ 0-59 |
+
+
+
+
+
+
+
+ Second
+ |
+
+
+
ss |
- Seconds, with leading zeros |
+ Numeric, with leading zeros |
00-59 |
- zz |
- Timezone abbreviation |
- Eg., EST, MDT ... |
+ s |
+ Numeric, without leading zeros |
+ 0-59 |
+
+
+
+
+
+
+
+ AM / PM
+ |
+
+
+
+
+ A |
+ AM/PM uppercase |
+ AM, PM |
+
+
+ a |
+ am/pm lowercase |
+ am, pm |
+
+
+
+
+
+
+
+ Timezone
+ |
+
+
+
+
+ ZZ |
+ UTC offset |
+ Eg., +0100, -0700 |
+
+
+ Z |
+ UTC offset |
+ Eg., +01:00, -07:00 |
+
+
+
+
+
+
+
+ Timestamp
+ |
+
+
+
+
+ X |
+ Unix timestamp |
+ Eg., 1456887825 |
diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py
index 0ceb4692..43cc71ea 100644
--- a/plexpy/notification_handler.py
+++ b/plexpy/notification_handler.py
@@ -441,9 +441,9 @@ def set_notify_state(session, notify_action, agent_info, notify_strings, metadat
def build_notify_text(session=None, timeline=None, notify_action=None, agent_id=None):
# Get time formats
- date_format = plexpy.CONFIG.DATE_FORMAT.replace('Do','').replace('zz','')
- time_format = plexpy.CONFIG.TIME_FORMAT.replace('Do','').replace('zz','')
- duration_format = plexpy.CONFIG.TIME_FORMAT.replace('Do','').replace('zz','').replace('a','').replace('A','')
+ date_format = plexpy.CONFIG.DATE_FORMAT.replace('Do','')
+ time_format = plexpy.CONFIG.TIME_FORMAT.replace('Do','')
+ duration_format = plexpy.CONFIG.TIME_FORMAT.replace('Do','').replace('a','').replace('A','')
# Get the server name
server_name = plexpy.CONFIG.PMS_NAME
@@ -900,8 +900,8 @@ def build_notify_text(session=None, timeline=None, notify_action=None, agent_id=
def build_server_notify_text(notify_action=None, agent_id=None):
# Get time formats
- date_format = plexpy.CONFIG.DATE_FORMAT.replace('Do','').replace('zz','')
- time_format = plexpy.CONFIG.TIME_FORMAT.replace('Do','').replace('zz','')
+ date_format = plexpy.CONFIG.DATE_FORMAT.replace('Do','')
+ time_format = plexpy.CONFIG.TIME_FORMAT.replace('Do','')
# Get the server name
server_name = plexpy.CONFIG.PMS_NAME