1
0

Fix notification icon path issue and update readme

Signed-off-by: MK13 <marius@kleberonline.de>
This commit is contained in:
2021-10-14 23:53:04 +02:00
parent 27f796b702
commit 9efb82736d
2 changed files with 6 additions and 2 deletions

View File

@@ -14,9 +14,12 @@ Also requires at least Python `3.9`.
## Install ## Install
###### Install dependencies ###### Install dependencies
`pip install feedparser` `pip install feedparser notify-py`
###### Clone repo ###### Clone repo
`git clone ...` `git clone ...`
###### Install systemd service and timer (optional)
`anime-rss` comes with a systemd user unit and timer. To install those, execute the `install-systemd-unit.sh` script.
It will copy the unit and timer to `~/.config/systemd/user/`
## Config ## Config
###### Adjust `config.json` ###### Adjust `config.json`

View File

@@ -4,6 +4,7 @@ import re
import subprocess import subprocess
import argparse import argparse
from notifypy import Notify from notifypy import Notify
import os
feedparser.USER_AGENT = "anime-rss/1.0" feedparser.USER_AGENT = "anime-rss/1.0"
@@ -35,7 +36,7 @@ def send_notification(message):
notification = Notify() notification = Notify()
notification.title = "anime-rss" notification.title = "anime-rss"
notification.message = message notification.message = message
notification.icon = "notfication-icon.png" notification.icon = os.path.dirname(os.path.realpath(__file__)) + "/notfication-icon.png"
notification.send() notification.send()