aboutsummaryrefslogtreecommitdiff
path: root/automedia.py
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-07-03 00:09:19 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:12:34 +0200
commit2fb1ff5b605112085b85403143fd41cee69dd489 (patch)
tree9640646b9a8fb71e23ada37274ea24c365853f68 /automedia.py
parentdbadbff646f25b937e7aa76ec4594f8908484333 (diff)
Add url to error notification
Diffstat (limited to 'automedia.py')
-rwxr-xr-xautomedia.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/automedia.py b/automedia.py
index 06be2da..a6af4fb 100755
--- a/automedia.py
+++ b/automedia.py
@@ -279,7 +279,7 @@ def sync_rss(tracked_rss):
feed = feedparser.parse(tracked_rss.link)
if 'bozo_exception' in feed:
print("{}: Failed to add rss, error: {}".format(str(datetime.today().isoformat()), str(feed.bozo_exception)))
- show_notification("RSS Sync failed", "Failed to parse rss for url {}, error: {}".format(tracked_rss.link, str(feed.bozo_exception)))
+ show_notification("RSS Sync failed", "Failed to parse rss for url {}, error: {}".format(tracked_rss.link, str(feed.bozo_exception)), urgency="critical")
return None
items = []
@@ -307,8 +307,8 @@ def plugin_list(plugin_path, url, latest):
stdout, stderr = process.communicate()
if process.returncode != 0:
plugin_name = os.path.basename(plugin_path)
- print("{}: Plugin failed: Failed to launch plugin list for plugin {}, error: stdout: {}, stderr: {}".format(str(datetime.today().isoformat()), plugin_name, stdout.decode('utf-8'), stderr.decode('utf-8')))
- show_notification("Plugin failed", "Failed to launch plugin list for plugin {}, error: stdout: {}, stderr: {}".format(plugin_name, stdout.decode('utf-8'), stderr.decode('utf-8')), urgency="critical")
+ print("{}: Plugin failed: Failed to launch plugin list for plugin {} and url {}, error: stdout: {}, stderr: {}".format(str(datetime.today().isoformat()), plugin_name, url, stdout.decode('utf-8'), stderr.decode('utf-8')))
+ show_notification("Plugin failed", "Failed to launch plugin list for plugin {} and url {}, error: stdout: {}, stderr: {}".format(plugin_name, url, stdout.decode('utf-8'), stderr.decode('utf-8')), urgency="critical")
return None
try: