feat: validate configuration

This commit is contained in:
Marc Plano-Lesay 2025-05-21 22:02:42 +10:00
parent ee7d7971be
commit 48c670f455
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF
33 changed files with 1076 additions and 165 deletions

View file

@ -0,0 +1,28 @@
[bitmagnet]
enable = true
host = "http://localhost:8080"
[transmission]
enable = false
host = "localhost"
port = 9091
username = "admin"
password = "password"
download_dir = "/downloads"
[ntfy]
enable = true
topic = "reddit-magnet"
host = "https://ntfy.sh"
priority = "default"
[sources.movies]
username = "movie_poster"
title_filter = "\\[1080p\\]"
tags = ["movies", "hd"]
[sources.tv_shows]
username = "tv_shows_fan"
title_filter = "S\\d{2}E\\d{2}"
imdb_id = "tt1234567"
tags = ["tv", "series"]