diff --git a/apprise/plugins/NotifyGrowl.py b/apprise/plugins/NotifyGrowl.py index e9df69dc..1871ff3f 100644 --- a/apprise/plugins/NotifyGrowl.py +++ b/apprise/plugins/NotifyGrowl.py @@ -395,15 +395,27 @@ class NotifyGrowl(NotifyBase): if 'priority' in results['qsd'] and len(results['qsd']['priority']): _map = { + # Letter Assignments 'l': GrowlPriority.LOW, 'm': GrowlPriority.MODERATE, 'n': GrowlPriority.NORMAL, 'h': GrowlPriority.HIGH, 'e': GrowlPriority.EMERGENCY, + 'lo': GrowlPriority.LOW, + 'me': GrowlPriority.MODERATE, + 'no': GrowlPriority.NORMAL, + 'hi': GrowlPriority.HIGH, + 'em': GrowlPriority.EMERGENCY, + # Support 3rd Party Documented Scale + '-2': GrowlPriority.LOW, + '-1': GrowlPriority.MODERATE, + '0': GrowlPriority.NORMAL, + '1': GrowlPriority.HIGH, + '2': GrowlPriority.EMERGENCY, } try: results['priority'] = \ - _map[results['qsd']['priority'][0].lower()] + _map[results['qsd']['priority'][0:2].lower()] except KeyError: # No priority was set diff --git a/apprise/plugins/NotifyProwl.py b/apprise/plugins/NotifyProwl.py index 8341064d..95673b3a 100644 --- a/apprise/plugins/NotifyProwl.py +++ b/apprise/plugins/NotifyProwl.py @@ -278,15 +278,27 @@ class NotifyProwl(NotifyBase): if 'priority' in results['qsd'] and len(results['qsd']['priority']): _map = { + # Letter Assignments 'l': ProwlPriority.LOW, 'm': ProwlPriority.MODERATE, 'n': ProwlPriority.NORMAL, 'h': ProwlPriority.HIGH, 'e': ProwlPriority.EMERGENCY, + 'lo': ProwlPriority.LOW, + 'me': ProwlPriority.MODERATE, + 'no': ProwlPriority.NORMAL, + 'hi': ProwlPriority.HIGH, + 'em': ProwlPriority.EMERGENCY, + # Support 3rd Party Documented Scale + '-2': ProwlPriority.LOW, + '-1': ProwlPriority.MODERATE, + '0': ProwlPriority.NORMAL, + '1': ProwlPriority.HIGH, + '2': ProwlPriority.EMERGENCY, } try: results['priority'] = \ - _map[results['qsd']['priority'][0].lower()] + _map[results['qsd']['priority'][0:2].lower()] except KeyError: # No priority was set