From a47faa90b961b76cf81fe0dd5801d87351f76b4e Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Wed, 23 Mar 2022 13:11:09 +0100 Subject: [PATCH] Prepare sane config defaults --- config.ini | 8 ++++++-- kodi-nfo-feeder.py | 6 +++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/config.ini b/config.ini index 3027cd1..4028525 100644 --- a/config.ini +++ b/config.ini @@ -8,9 +8,13 @@ do_seasons = yes [maus] watch_dir = /var/lib/kodi-nfo-feeder/watch output_dir = /var/lib/kodi-nfo-feeder/output -title_regex_search = (\w)-(\s) -title_regex_replace = \1 -\2 +title_regex_search = +title_regex_replace = do_seasons = yes +run_cmd = +kodi_jsonrpc_address = http://localhost:8080/jsonrpc +kodi_jsonrpc_username = +kodi_jsonrpc_password = [otto] watch_dir = /var/lib/kodi-nfo-feeder/test/watch diff --git a/kodi-nfo-feeder.py b/kodi-nfo-feeder.py index 6ae2813..1f06061 100644 --- a/kodi-nfo-feeder.py +++ b/kodi-nfo-feeder.py @@ -41,7 +41,11 @@ class CONST(object): {"key": "output_dir", "is_mandatory": True}, {"key": "title_regex_search", "is_mandatory": False}, {"key": "title_regex_replace", "is_mandatory": False}, - {"key": "do_seasons", "is_mandatory": False} + {"key": "do_seasons", "is_mandatory": False}, + {"key": "run_cmd", "is_mandatory": False}, + {"key": "kodi_jsonrpc_address", "is_mandatory": False}, + {"key": "kodi_jsonrpc_username", "is_mandatory": False}, + {"key": "kodi_jsonrpc_password", "is_mandatory": False} ] CFG_MANDATORY = [section_cfg["key"] for section_cfg in CFG_KNOWN_SECTION if section_cfg["is_mandatory"]]