1
0

#6 Calendar view

Add a calendar view
Update required python version to 3.10
Correct config and animes flags to -c and -a
Change timer tick rate to every 15mins instead of 55mins
Update readme

Signed-off-by: MK13 <marius@kleberonline.de>
This commit is contained in:
2022-04-21 23:36:01 +02:00
parent abf6ab0bf6
commit 6fe2fd4e76
7 changed files with 285 additions and 103 deletions

View File

@@ -10,11 +10,11 @@ running `anime-rss`. Further `transmission-remote` needs to be on the path.
In the Transmission config file `~/.config/transmission-daemon/settings.json` check the `rpc-` properties, as
`anime-rss` uses `transmission-remote` which sends the torrent URLs to Transmission via RPC.
Also requires at least Python `3.9`.
Also requires at least Python `3.10`.
## Install
###### Install dependencies
`pip install feedparser notify-py`
`pip install feedparser notify-py rich`
###### Clone repo
`git clone ...`
###### Install systemd service and timer (optional)
@@ -44,7 +44,7 @@ actual anime name during feed parsing.
## Running and example output
```
[MK13@brutebox ~]$ python path/to/anime-rss.py path/to/config.json path/to/animes.json
[MK13@brutebox ~]$ python path/to/anime-rss.py -c path/to/config.json -a path/to/animes.json
Checking feed: SubsPlease
Checking anime: Go-toubun no Hanayome S2 - Airing every Thursday 02/x
Checking anime: Jaku-Chara Tomozaki-kun - Airing every Friday 02/x
@@ -63,4 +63,18 @@ localhost:9091/transmission/rpc/ responded: "success"
```
Both parameters are optional, if not given they are searched in the current working directory.
`anime-rss` also outputs colored and formatted text via ANSI escape sequences if supported.
`anime-rss` also outputs colored and formatted text via ANSI escape sequences if supported.
### Calendar view
If given the `-t` flag `anime-rss` will output a calendar view of all configured animes:
``` Animes
┏━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Monday ┃ Tuesday ┃ Wednesday ┃ Thursday ┃ Friday ┃ Saturday ┃ Sunday ┃
┡━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ │ Yuusha, Yamemasu │ Tate no Yuusha no Nariagari S2 │ Mahoutsukai Reimeiki │ Kaguya-sama wa Kokurasetai S3 │ Spy x Family │ Otome Game Sekai wa Mob ni Kibishii Sekai │
│ │ │ │ │ │ │ desu │
│ │ │ Shijou Saikyou no Daimaou, Murabito A ni │ │ Date A Live IV │ Kawaii dake ja Nai Shikimori-san │ │
│ │ │ Tensei suru │ │ │ │ │
│ │ │ │ │ Aharen-san wa Hakarenai │ │ │
│ │ │ │ │ │ │ │
└────────┴──────────────────┴────────────────────────────────────────────┴──────────────────────┴───────────────────────────────┴──────────────────────────────────┴─────────────────────────────────────────────┘
```