From c62cd1e2859304913d7630300446d717d9c9c062 Mon Sep 17 00:00:00 2001 From: Neshura Date: Mon, 18 Sep 2023 21:04:44 +0200 Subject: [PATCH] Switch Readme to toml config --- README.md | 55 +++++++++++++++++++++++++++++++------------------------ 1 file changed, 31 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 47f2be6..1a57ada 100644 --- a/README.md +++ b/README.md @@ -17,36 +17,43 @@ } ``` -**config.json** -```json -{ - "instance": "string", - "reddit_config": { - "user_agent": "string", - "subreddit": "string" - }, - "feeds": [ - { - "feed_url": "string", - "communities": { - "chapter": "string", - "volume": "string" - }, - "reddit": { - "enabled": bool, - "flair": "string" - }, - "discord": bool - } - ] -} +**config.toml** +```toml +[urls] +instance = "base URL of Lemmy Instance" +uptime_kuma = "Uptime Kuma Ping URL" + +[settings] +config_reload = 360 # Time in Minutes between Config reloads + + +[[feeds]] +id = 0 # incrementor, only used for correctly matching post history data +series_slug = "ascendance-of-a-bookworm" # series slug on J-Novel Club + +[communities] +chapter = "aobprepub" # Community for Chapter Posts of the Series +volume = "aoblightnovel" # Community for Volume Posts of the Series + + +[[feeds]] # See previous example +id = 1 +series_slug = "ascendance-of-a-bookworm-short-story-collection" + +[communities] +chapter = "aobprepub" +volume = "aoblightnovel" ``` posts.json ```json [ { + "id": number, "title", - "last_post_url": "string" + "last_volume_slug": "string", + "last_volume_time": "string", + "last_part_slug": "string", + "last_part_time": "string" } ] \ No newline at end of file