|
41 | 41 | 'url': '', |
42 | 42 | 'cron': Cron('* * * * *'), |
43 | 43 | 'title': 'New Magic Bags', |
44 | | - 'body': '${{display_name}} - new amount: ${{items_available}} ' |
45 | | - '- https://share.toogoodtogo.com/item/${{item_id}}' |
| 44 | + 'body': '${{display_name}} - new amount: ' |
| 45 | + '${{items_available}} - ${{link}}' |
46 | 46 | }, |
47 | 47 | 'console': { |
48 | 48 | 'enabled': False, |
|
77 | 77 | 'key': '', |
78 | 78 | 'body': '{"value1": "${{display_name}}", ' |
79 | 79 | '"value2": ${{items_available}}, ' |
80 | | - '"value3": "https://share.toogoodtogo.com/item/${{item_id}}"}', |
| 80 | + '"value3": "${{link}}"}', |
81 | 81 | 'timeout': 60, |
82 | 82 | 'cron': Cron('* * * * *') |
83 | 83 | }, |
|
86 | 86 | 'server': 'https://ntfy.sh', |
87 | 87 | 'topic': None, |
88 | 88 | 'title': 'New TGTG items', |
89 | | - 'message': '${{display_name}} - New Amount: ${{items_available}} - ' |
90 | | - 'https://share.toogoodtogo.com/item/${{item_id}}', |
| 89 | + 'message': '${{display_name}} - New Amount: ' |
| 90 | + '${{items_available}} - ${{link}}', |
| 91 | + 'body': None, |
91 | 92 | 'priority': 'default', |
92 | 93 | 'tags': 'shopping,tgtg', |
93 | | - 'click': 'https://share.toogoodtogo.com/item/${{item_id}}', |
| 94 | + 'click': '${{link}}', |
94 | 95 | 'username': None, |
95 | 96 | 'password': None, |
96 | 97 | 'timeout': 60, |
@@ -330,6 +331,7 @@ def _read_ini(self) -> None: |
330 | 331 | self._ini_get(config, "NTFY", "Topic", "ntfy.topic") |
331 | 332 | self._ini_get(config, "NTFY", "Title", "ntfy.title") |
332 | 333 | self._ini_get(config, "NTFY", "Message", "ntfy.message") |
| 334 | + self._ini_get(config, "NTFY", "Body", "ntfy.body") |
333 | 335 | self._ini_get(config, "NTFY", "Priority", "ntfy.priority") |
334 | 336 | self._ini_get(config, "NTFY", "Tags", "ntfy.tags") |
335 | 337 | self._ini_get(config, "NTFY", "Click", "ntfy.click") |
@@ -461,6 +463,7 @@ def _read_env(self) -> None: |
461 | 463 | self._env_get("NTFY_TOPIC", "ntfy.topic") |
462 | 464 | self._env_get("NTFY_TITLE", "ntfy.title") |
463 | 465 | self._env_get("NTFY_MESSAGE", "ntfy.message") |
| 466 | + self._env_get("NTFY_BODY", "ntfy.body") |
464 | 467 | self._env_get("NTFY_PRIORITY", "ntfy.priority") |
465 | 468 | self._env_get("NTFY_TAGS", "ntfy.tags") |
466 | 469 | self._env_get("NTFY_CLICK", "ntfy.click") |
|
0 commit comments